In this article, will show you how to deploy a REST API made using Nest JS along with Postgres in Ubuntu 20.04 LTS.

STEP 1 (SETUP POSTGRES)

Install Postgres by typing in the terminal:

$ sudo apt-get update
$ sudo apt-get install postgresql postgresql-contrib
$ su - postgres
$ psql
root@testapi:~# su — postgrespostgres@testapi:~# psql..postgres=#

Exit from the Postgres shell by typing…


Image from https://www.codementor.io/

In this article, I will be discussing how we can run a Node Js app inside a VPS so that we can access it from anywhere.

I have a basic VPS with Ubuntu and a subdomain setup where I will be setting up my node application. If you don't know how to set up a subdomain, you can check my previous article. First of all login into your VPS by using putty or Powershell by using the command ssh username@host.

Step 1- Installing Node

Install Node JS and NPM by using the command:

$ curl -sL https://deb.nodesource.com/setup_14.x …


Image from www.zepo.in

This article will show how you can add an SSL certificate to your Domains in VPS.

If you followed my last story, I have shown how you can add multiple domains/subdomains to your VPS. I strongly recommend checking it out as I will continue that story to add certificates to the domain.

So as for now, you have already added domains/subdomains to your VPS by pointing ‘A’ record to your IP Address to the Domain Provider. Let’s continue adding SSL to the Domains.

In this tutorial, I have 2 websites, jugaadapp.me and api.jugaadapp.me .

Step 1- Installing Certbot

Add the Certbot repository so that…


In this article, I will be showing you how you can install WordPress in any VPS using LEMP(Linux, Nginx, MySQL, PHP) stack.

Image from https://makeawebsitehub.com/

Step 1(Install a LEMP Stack)

Install Nginx Server

$ sudo apt-get update
$ sudo apt-get install nginx

Installing MySQL

Use the below commands to install the MySQL server and configure it:

$ sudo apt-get install mysql-server
$ sudo mysql_secure_installation


Image from depositphotos.com

So in this article, I will be discussing how to set up Nginx Server with multiple Domains or Subdomains.

Prerequisites

  • Setup a VPS of your requirements. In this tutorial, I will be using Azure to set up a VPS with 1GB RAM, 1vcpu, and Ubuntu 18.04.
  • Connect to your newly created server using an ssh client like Putty.
  • Must have a Domain and have access to it. I will be using Namecheap for the Domain.

Step 1- Connect your VPS with Domain

Connect your domain with the server so that you don't have…

Farhaz Alam

Flutter | Vue | DevOps | Digital Marketing

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