REST API using NodeJS with the following features
- Authentication (using username and password)
- The code have create, edit, update and delete functionality for users.
- Forget password api
- Clone the repository
- Cd to project directory
- create a dev.js file in config folder and write the below code
module.exports={
DB_URL : <YOUR_DB_URL>,
JWT_SECRET : <YOUR_JWT_SECRET>,
SMTP_USER : <STMP_EMAIL>,
SMTP_KEY : <SMTP_KEY>
}
- Replcae <YOUR_DB_URL>, <YOUR_JWT_SECRET>, <STMP_EMAIL> , <SMTP_KEY> with your credentials
- Run this command
npm install
nodemon app.js
- Wait for message
Mongo is connected
- use Postman or Hoppscotch to test all the API's