Skip to content

Instantly share code, notes, and snippets.

View codinginflow's full-sized avatar

Coding in Flow codinginflow

View GitHub Profile
@codinginflow
codinginflow / commands.md
Last active February 28, 2025 00:04
Deploy & Secure Your MERN App
@codinginflow
codinginflow / cli-commands.md
Last active January 23, 2024 10:50
Deploy & Secure ExpressJS Backend (NextJS Course)

Below are the CLI commands used in the deployment video of my NextJS + Express + TypeScript course.

Get the course here: https://codinginflow.com/nextjs

Commands:

  • First login: ssh root@<your-server-ip>

  • Update Linux packages:

@codinginflow
codinginflow / next-self-hosting-instructions.md
Last active April 14, 2025 04:08
Deploy & secure a Next.js app + Postgres DB on a VPS

Self-Hosting Next.js Tutorial

Follow the instructions below to deploy a Next.js app with a local PostgreSQL database to a VPS, secure it, and connect it to a custom domain with free SSL. Watch the accompanying tutorial on YouTube: https://www.youtube.com/watch?v=2T_Dx7YgBFw

Instructions & commands:

  1. Get your VPS server on Hostinger (Use code CODINGINFLOW for 10% off). Install Ubuntu 24 as the OS and set a root password.
  2. Log into your server as root: ssh root@<your-server-ip>
  3. Update Linux packages: apt update && apt upgrade -y
  4. Create a new user: adduser