Developing NodeJS applications often requires restarting the server or process that is being built. This is needed for NodeJS to reload the files that have been modified, since Node will by default cache those files. This can be frustrating. Change a file, go to terminal window, cancel and restart the process, go back to the app, refresh. Change a file, go to terminal window, cancel and restart the process, go back to the app, refresh. It's an endless cycle.
Fortunately, Nodemon is here to help! It will automate the process of stopping and restarting your code any time a file is changed. And in this episode of WatchMeCode, I'll show you how to use it for simple command line NodeJS apps as well as how to use it with the ExpressJS web app framework.
If you're building NodeJS apps, you need Nodemon in your workflow.