Start the server
; cd api
; npm install
; JWT_SECRET=SUPER_SECRET npm run start
Then start the front end in a new terminal session
; cd frontend
; npm install
; JWT_SECRET=SUPER_SECRET npm start
Start the server in test mode (so that it connects to the test DB)
; cd api
; npm install
; JWT_SECRET=SUPER_SECRET npm run start:test
Then run the tests in a new terminal session and also download npm library
; cd api
; JWT_SECRET=SUPER_SECRET npm run test
Start the server in test mode (so that it connects to the test DB)
; cd api
; JWT_SECRET=SUPER_SECRET npm run start:test
Then start the front end in a new terminal session
; cd frontend
; npm install
; JWT_SECRET=SUPER_SECRET npm start
Then run the tests in a new terminal session
; cd frontend
; JWT_SECRET=SUPER_SECRET npm run test
https://trello.com/b/TSRa0ShI/ep2
https://docs.cypress.io/api/cypress-api/custom-commands
https://www.w3schools.com/mongodb/index.php
Useful information on Mongodb such as find(), update() etc.
https://www.youtube.com/watch?v=I7EDAR2GRVo
Good tutorial link