NodeJS + Nodemon

in #programming8 years ago

When we are programming in NodeJS, is really annoying to restart the application just to see minor changes in the code, especially when you are making some web app with express. The quickest solution to this is nodemon.

Install

npm install -g nodemon

Usage

nodemon [your node app]

Example (express)

nodemon bin/www


While your application run through nodemon, every time that you change any file, he will watch the files in the directory in which was started, and if any files change, he will automatically restart your node application.

For more information visit: https://www.npmjs.com/package/nodemon

Coin Marketplace

STEEM 0.20
TRX 0.19
JST 0.033
BTC 88885.90
ETH 3279.02
USDT 1.00
SBD 2.99