Email/Password based express mongodb auth reusable template module
- install npm modules
npm install
- update
MONGO_URL
atconfig.js
file with MongoDB URI - update
PORT
atconfig.js
file. By default its set to3200
(optional) - Start the server
npm run start:dev // starts dev server with nodemon
npm run start:prod // starts prod server with pm2
The project comes with 4 api endpoints
-
POST /register
-
POST /login
-
GET /authenticate
-
POST /update-password