1. Configure DNS on Hostinger

  1. Go to Hostinger Dashboard

  2. Go to:
    Hosting → Manage → Advanced → DNS Zone Editor

  3. In Manage DNS Records:
    Type: A
    Name: edu-genius (this makes edu-genius.progoss.com)
    Points to: YOUR_VPS_IP
    TTL: 14400

  4. Click Add Record and Confirm

2. Access VPS via SSH

  1. Go to:

VPS Dashboard

SSH Access Tab

  1. Open terminal and connect:
ssh root@your-vps-ip

3. Prepare the VPS Environment

1. Update VPS

sudo apt-get update && sudo apt-get upgrade -y

2. Install Node.js via NVM

# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash

# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"

# Download and install Node.js:
nvm install 22

# Verify the Node.js version:
node -v # Should print "v22.14.0".
nvm current # Should print "v22.14.0".

# Verify npm version:
npm -v # Should print "10.9.2".

3. Install Git, PM2, and Nginx

sudo apt-get install git-all -y
npm i -g pm2
sudo apt install nginx -y

4. Deploy EduGenius App