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

#nodejs #nginx #pm2 #react #node

Deploying A React App and A Node.js Server on A Single Machine with PM2 and Nginx
3.40 GEEK