nodejs.org/en/download
pnpm.io/installation
mongodb.com/try
git-scm.com/downloads
—

terminal
node --version     # → v20.x.x or newer
npm --version     # comes with Node
pnpm --version    # if missing, install via Corepack (below)
git --version

# Windows (PowerShell)
npm install -g pnpm

# macOS / Linux — Corepack ships with Node 16+
corepack enable
corepack prepare pnpm@latest --activate

# verify
pnpm --version

  1. backend
    cd backend
    pnpm install
  2. frontend
    cd frontend
    pnpm install

  1. backend
    cd backend
    pnpm dev
    # → Server running in development mode on port 5000
    # → API available at http://localhost:5000/api/v1

  2. frontend
    cd frontend
    pnpm dev
    # → Local: http://localhost:3000

curl http://localhost:5000/api/v1/health

# → {"success":true,"message":"Server is healthy","timestamp":"...","uptime":...}

backend
cd backend
node seed-admin.js

# Best practice — set these in backend/.env first:
# ADMIN_EMAIL=you@yourdomain.com
# ADMIN_PASSWORD=<a strong password of your choosing>
# ADMIN_NAME=Admin

pnpm: command not found
Config validation error: MONGO_URI is required
“Cannot find module 'express'”
Frontend: “Module not found” errors
MongoDB connection refused
Port 5000 already in use
node --version older than v20 but frontend fails to start

0/60%