cd into parent folder and create a .env with following parameters and fill their values
- PORT=5000
- MONGO_URI=
- JWT_SECRET=stringofyourchoice
- JWT_EXPIRE=10min
- EMAIL_SERVICE=SendinBlue
- EMAIL_USERNAME=
- EMAIL_PASSWORD=
- EMAIL_FROM=
create account on SendinBlue email service and not down email (EMAIL_USERNAME) and web api key (EMAIL_PASSWORD) and replace in the .env file
MONGO_URI=mongodb+srv://userid:[email protected]/dbname
cd into parent folder and run:
- npm install (all dependencies will be installed from package.json)
- npm start
- open localhost:5000 to verify server running on default root