How to use nodemon to restart your process when your code changes
Just use nodemon instead of node to run your code, and now your process will automatically restart when your code changes.
Notes:
00:00 - Problem of wasting time with restarting node server
00:40 - nodemon (https://github.com/remy/nodemon)
01:00 - install nodemon
02:40 - Updating package.json
03:00 - running and testing nodemon
---
For use during development of a node.js based application.
nodemon will watch the files in the directory in which nodemon was started, and if any files change, nodemon will automatically restart your node application.