Is there a way for Nodejs to reflect the changes done in my files, rather than closing the node and running it again? I'm still in the development phase so I make a lot of changes, so what I do is I stop the server each time and run it again (with "node" command)
I prefer to use https://github.com/remy/nodemon you can install it globally
npm install -g nodemon
and start your server by doing
nodemon app.js
You can use node-supervisor:
A little supervisor script for nodejs. It runs your program, and watches for code changes, so you can have hot-code reloading-ish behavior, without worrying about memory leaks and making sure you clean up all the inter-module references, and without a whole new require system.