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.

Node.js

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

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 127.0.0.1
HTTP/1.1 200 OK
Server…

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