Skip to content

Instantly share code, notes, and snippets.

View nrbnayon's full-sized avatar
🎯
Focusing

Nayon Kanti Halder nrbnayon

🎯
Focusing
View GitHub Profile

🚀 VPS Deployment Guide

MEAN / MERN Stack · NGINX · PM2 · SSL

Complete Step-by-Step Production Deployment


📋 Overview

This guide walks you through deploying a full-stack web application — React/Next.js frontend, Node.js/Express backend, and an admin dashboard — on a fresh Linux VPS, from DNS setup all the way to live HTTPS URLs.

@shaishab316
shaishab316 / deploy-cheatsheet.md
Last active June 6, 2026 06:53
A step-by-step guide to deploy React frontend, Node.js backend, and Dashboard on a fresh VPS using NGINX reverse proxy, PM2 process manager, and free SSL via Certbot. Perfect for production-ready hosting with subdomains (api & dashboard) and automatic service startup.

🌐 Easy Hosting Guide on Vps (MEAN stack)

✅ Step 0: Set Up Domain First

  1. Open your domain provider’s dashboard (e.g., Namecheap, GoDaddy, Cloudflare, Hostinger, Porkbun, etc.)
  2. Go to Domain List → DNS Zone
  3. Now observe: 🔍 If there are old A records named @, api or dashboard 👉 Delete them first.