The objective of this article is to document my journey through the process of deploying both the Frontend and Backend within the same Linux machine with a load balancer.

Installing prerequisites

Note that these instructions are valid for Ubuntu 16 or later.


  • Install command:
$ sudo apt install nodejs
  • Verify the installation:
$ node --version

Nginx (Web serving, reverse proxying, and load balancing)

  • Update the Ubuntu repository information:
$ sudo apt-get update
  • Install the package:
$ sudo apt-get install nginx
  • Verify the installation:
$ sudo nginx -v
nginx version: nginx/1.14.0 (Ubuntu)
  • Start NGINX:
$ sudo nginx
  • Verify that NGINX is up and running:
$ curl -I
HTTP/1.1 200 OK

Leonardo Cunha

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store