From the course: Building a Website with Node.js and Express.js

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Setting up nodemon

Setting up nodemon

From the course: Building a Website with Node.js and Express.js

Start my 1-month free trial

Setting up nodemon

On my pursuit to make coding as smooth as possible, I found out that it's pretty tedious to reload express every time I change some code as we did it before. This problem can be solved with a tool called nodemon. Nodemon will watch a project and reload it automatically when a file changes. So let's install nodemon now and it's again a development dependency. I add npm, install, dash D, nodemon, and this will install nodemon for us and I'm already opening package.jason, because I have to change the startscript, they are now once nodemon is installed, because I will now add a new entry that I call dev. You will see soon how we can run this then, and there I add nodemon, and then I add dash dash ignore, and this is now a little bit of spoiler, because later we will store feedback user submit into a feedback.jason file, and we don't want express to reload then every time this file is changed, so I am ignoring…

Contents