Nodemon reload the server on code change automatically

Nodemon reload the server on code change automatically

In this tutorial, I will tell you what is the use of nodemon and where you can use it.

Using Nodemon, you do not need to restart your server on any changes made in your source code because this will monitor for any changes in your code and restart your server automatically.

When you want your process will restart automatically on any changes then you must use nodemon instead of node to run your application..

Install nodemon globally

Run following line of code to install nodemon :

sudo npm install -g nodemon

By running above command, nodemon will be installed globally to your system.

Usage

By using node, you run your application like this :

node server.js

By using nodemon, you will run your application like this :

nodemon server.js

It supports coffee-script apps:

nodemon server.coffee

Nodemon watch the files in the directory in which nodemon was started,Whenever any files get changed then it will restart the node application automatically.

Default Extension supported by nodemon

By default it look for files with the .js, .json, .coffee, .litcoffee extensions.

You can define your own list by following way :

nodemon -e js,jade

Now nodemon will look for files with the .js, .jade extensions.

There might be some case where you need to ignore some specific files and directory.You can ignore files and directory by following way :

nodemon server.js --ignore lib/

Phone: (+91) 8800417876
Noida, 201301
ataşehir escort maltepe escort bostancı escort kadıköy escort maltepe escort ataşehir escort tuzla escort pendik escort ümraniye escort kartal escort
pendik escort
izmir escort izmir escort izmir escort izmir escort denizli escort antalya escort antalya escort antalya escort izmir escort izmir escort izmir escort izmir escort izmir escort
hatay escort nevsehir escort nigde escort kirikkale escort batman escort osmaniye escort kirklareli escort tokat escort rize escort adiyaman escort gumushane escort batman escort
porno izle
cialis satış cialis fiyat cialis 20 mg cialis 100 mg cialis 5 mg fiyat
sohbet okey oyna
ankara escort marmaris escort bursa escort mersin escort antalya escort izmir escort samsun escort bodrum escort çeşme escort kuşadası escort adana escort eskişehir escort gaziantep escort esenyurt escort pendik escort tuzla escort fatih escort ümraniye escort mecidiyeköy escort kartal escort bahçelievler escort bahçeşehir escort ataşehir escort bakırköy escort nişantaşı escort avcılar escort büyükçekmece escort kurtkoy escort konya escort beşiktaş escort taksim escort beylikdüzü escort malatya escort sakarya escort şişli escort maltepe escort kadıköy escort ataköy escort bostancı escort şirinevler escort bağcılar escort üsküdar escort etiler escort başaksehir escort ortaköy escort kağıthane escort sultangazi escort halkalı escort çekmeköy escort şaşkınbakkal escort mamak escort sincan escort keçiören escort çankaya escort beypazarı escort akyurt escort pursaklar escort kahramankazan escort göztepe escort alsancak escort bornova escort buca escort karabaglar escort karşıyaka escort konak escort narlıdere escort izmit escort başiskele escort kandira escort körfez escort karamürsel escort dilovası escort gölcük escort gebze escort kocaeli escort kayseri escort elazığ escort denizli escort diyarbakir escort adana escort ankara escort izmir escort antalya escort gaziantep escort kayseri escort konya escort mersin escort denizli escort kocaeli escort diyarbakır escort