title | description | created | updated |
---|---|---|---|
Nodemon |
Nodemon helps NodeJS applications to restart on file changes |
2019-08-13 |
2019-08-13 |
Nodemon helps NodeJS applications to restart on file changes
npm install -g nodemon
npm install --save-dev nodemon
If you are doing node index.js
to start your NodeJS application, then start doing the following to start with Nodemon
nodemon index.js
By default Nodemon monitors current working directory, If you want override that behaviour with your specific directories, you can do the following
nodemon --watch server --watch docs --watch client server/index.js
In this case Nodemon watches ./server
, ./docs
. ./client
folders