Sunday, August 9, 2020

module to restart server for every code change

 module to restart server: Nodemon


npm install --save nodemon


package.json

---

"scripts": {

 ....

 "dev": "nodemon index.js"

}



>npm run dev



So, whenever there is a change in code, automatically the server gets restarted by nodemon.


No comments:

Post a Comment