You Don't Need to Restart Your Node Server Again and Again

While doing development on any NodeJS application, whenever we make any change to some file we need to restart our Node server from the command prompt/terminal. This is a repetitive process since we make hundred of changes and restart the server every time to check the change.

The solution to this issue is using a tool called nodemon. It will continuously check your files for any changes and will restart the server itself if it detects any change.

nodemon can be installed usingthe following command.
  1. npm install nodemon -g  
After the successful installation you can use nodemon app.js (you file name) rather than node app.js in your command prompt and it will keep monitoring files for any change.

Ebook Download
View all
Learn
View all