Making Node.js service always alive on Ubuntu Server

Forever Module is good, but you don’t need another software to control background processes on your server! One of the challenges in production is how to run Node.js services in background automatically restart them if they are crashing collect output/error logs for analyzing them later or watching them in a real time. All of them are similar to every long running application on server side, so the Linux community have that kind of tools natively integrated into almost every linux d ...

View More
  Dibaca 1970 kali

Tutorial Installing Express

Installing Assuming you’ve already installed Node.js, create a directory to hold your application, and make that your working directory. $ mkdir myapp $ cd myapp Use the npm init command to create a package.json file for your application. For more information on how package.json works, see Specifics of npm’s package.json handling. $ npm init This command prompts you for a number of things, such as the name and version of your application. For ...

View More
  Dibaca 1700 kali