Deploying a Node.js Application to bare Linux Server on Cloud can be tricky and hard to find the right configuration and the right stack of technologies that fit your needs.

You can get a VPS (Virtual Private Server) from many different reliable platforms, we will use Hostigner since it is very affordable and easy to setup with different add-ons.

I prefer to use Ubuntu 18.04 which is the latest version as the time of making this tutorial since it is very easy to setup and install all required dependencies.

Usually, for deploying a Nodejs Application to a bare server required steps we need to follow.

  • Setup your DBMS: in our case, we will use MySQL (It depends on what your application works with).

  • Setup a Reverse Proxy: we will use Nginx for re-versing HTTP Requests to our internal Nodejs Server.

  • Install Node & NPM.

  • Install PM2 Nodejs Process Manager.

  • Push/Clone your code from version control.

  • run a local server and configure reverse proxy.

Those are the minimal steps you should consider for making your Nodejs application available to access on your server’s IP address or domain name on port 80 which the default port for serving HTTP.

Github Profile: https://github.com/ipenywis

#nodejs #javascript

Deploying Nodejs Application to Server [Full Guide]
42.00 GEEK