Install nodemon (if you have not)
npm install -g nodemon
Install packages
npm i express mongoose bcrypt jsonwebtoken nodemon morgan body-parser cors --save
- Create file \server\config\db.js
- Add these lines to the newly created
db.js
Replace with yours.
module.exports = {
database: "<Addr of your DB>",
secret: "password"
};
nodemon
Please refer to this.