node index.js
, which requires us to Ctrl+C
and restart our server every time we make code changes, we can use Nodemon.-e js
argument tells Nodemon to only restart on changes to JS files. By default Nodemon also "watches" (i.e. restart on changes) JSON files, which can be troublesome when we work with JSON files as DBs.nodemon
without the -e
argument.