Nodemon auto-refreshes Node applications on code changes, helpful for development
Nodemon is an application that restarts our Node app every time we change a file that the app depends on. This is especially useful in development when we make frequent changes to our code. Without Nodemon we would need to manually quit and restart our app on code changes.
Install Nodemon globally to run Nodemon from all folders.
npm i -g nodemon
Run nodemon on the entry file of our app. When any app files changes, Nodemon will restart the app.