npm install
You have to create a .env file, with the following entries.
USERNAME="XXXXX",
PASSWORD="XXXXXXXXXXXX",
HOST= "xxxxxxxxx.xxxxx.mongodb.net",
DB= "XXXXXXXX",
PROD_URL="https://xxxxxxx.com"
ACCESS_TOKEN_SECRET="XXXXXXXXX"
ACCESS_TOKEN_LIFE="24h"
To run server and client concurrently on localhost, simply execute :
npm run dev
To only run the server on localhost, simply execute :
nodemon index
npm run test