MEAN, NodeJS, System

Node app Deployment and development process Manager

For development , its better to use nodemon

To install

npm install -g nodemon

To run

nodemon server.js


For Production , For most cases we can use forever

To Install

[sudo] npm install forever -g

To run

forever start app.js

forever start -a server.js

forever stop server.js

forever list

To see continuous Logs in terminal

forever logs server.js -f


Windows – Check which app is using a particular Port

Its a common thing we might need to know as Web Developers.

Go to terminal/CMD –
netstat -a -o -n

Or for GUI app

Find the PID of your specific Port

Then run
taskkill /F /PID port_no