Nodejs auto restart server | NodeJS watch file Changes
NodeJS Logo(Source: Wikipedia) When we working with nodejs application manually restarting our application is the tedious task for everyone, so everytime when we working on node application then we may think that How to watch node file changes or just simply watch node file changes right? So we will see how can we overcome this problem with simple step by using nodemon to watch file changes. Step 1: Create sample application with the following command: $ npm init -y #-y for accpeting default configuration Wrote to /home/ubuntu/dev/blogTutor/package.json: { "name": "blogTutor", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "Vikas", "license": "ISC" } Step 2: ...