| title | Nodemon |
|---|---|
| description | Nodemon helps NodeJS applications to restart on file changes |
| created | 2019-08-13 |
| updated | 2019-08-13 |
Nodemon helps NodeJS applications to restart on file changes
npm install -g nodemonnpm install --save-dev nodemonIf you are doing node index.js to start your NodeJS application, then start doing the following to start with Nodemon
nodemon index.jsBy 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.jsIn this case Nodemon watches ./server, ./docs. ./client folders