Create a folder named config
and inside create a file named config.env
and add the add the following variables
PORT
PORT TO RUN THE SERVER ON
MONGO_URI
The Cluster URI(MongoDB Database)
JWT_SECRET
The JWT Secret (any string)
SERVICE_EMAIL
The email to send remainder emails from
SERVICE_EMAIL_PWD
The password for the above email
Also Certain SMTP servers like google does not allow unauthorized apps, So Be sure to allow the functionality
Run npm install
to install all dependencies
Run npm run dev
to start the server in dev mode
Run npm start
to start the server in prod mode
API Docs: https://documenter.getpostman.com/view/12609336/TzRRCTTv