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 881 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 968 kali

How To Use SSL/TLS With Node.Js

  HTTPS Everywhere The HTTP/2 specification was published as RFC 7540 in May 2015, which means at this point it’s a part of the standard. This was a major milestone. Now we can all upgrade our servers to use HTTP/2. One of the most important aspects is the backwards compatibility with HTTP 1.1 and the negotiation mechanism to choose a different protocol. Although the standard doesn’t specify mandatory encryption, currently no browser supports HTTP/2 unencrypted. This gives HTTPS ...

View More
  Dibaca 1006 kali