Quick Start: Running locally w/o Docker (on MacOS or Linux) 2025.11.20

This guide walks you through setting up the UpGrade locally using Node.js and PostgreSQL, without Docker. The steps are intentionally simple and linear so that anyone can complete the setup smoothly.


1. Install Node.js (via nvm)

UpGrade currently uses Node v22.14.0 for both development and build compatibility.

# Install nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

# Load nvm into the current shell
source ~/.zshrc     # or ~/.bashrc depending on your shell

# Install Node v22.14.0
nvm install 22.14.0

# Use that version
nvm use 22.14.0

# Verify
node -v     # v22.14.0
npm -v

2. Install PostgreSQL

We recommend Postgres.app on macOS because it is the simplest and most reliable way to run PostgreSQL locally.

  1. Move it to your Applications folder

  2. Open the app

  3. Click Initialize

  4. Open Server Settings → rename the server to dev


3. (Optional) DataGrip Setup

If you want a GUI to inspect the database:

  1. Download and install Datagrip from https://www.jetbrains.com/datagrip/download/#section=mac

  2. Open Datagrip and click "New Project".

  3. Enter "PostgreSQL" as a new project name and click "OK".

  4. Click "+" -> "Data Source" -> "PostGreSQL".

  5. Enter "postgres" for the "User" field and click "OK".


4. Clone & Install UpGrade

git clone https://github.com/CarnegieLearningWeb/UpGrade.git
cd UpGrade

# Root
npm ci

# Backend root
cd backend
npm ci

# Types package
cd ../types
npm ci
cp -R . ../backend/packages/Upgrade/types    # copy types into backend package

# Backend Upgrade package
cd ../backend/packages/Upgrade
npm ci

# Frontend
cd ../../../frontend
npm ci

cd ..

This installs all backend, types, and frontend dependencies in the correct order.


5. Backend Environment Setup

Go to the Upgrade backend package:

cd backend/packages/Upgrade
cp .env.example .env

Edit .env and update:

TYPEORM_SYNCHRONIZE=false
GOOGLE_CLIENT_ID=your_google_client_id
ADMIN_USERS=you@yourcompany:admin

6. Frontend Environment Setup

cd frontend/projects/upgrade/src/environments
cp environment.local.example.ts environment.local.ts

Edit:

googleClientId: 'your_google_client_id',

This must match the backend’s Google client ID.


7. Start the Backend

cd backend/packages/Upgrade
npm run dev

Backend will now be live at:

http://localhost:3030

8. Start the Frontend

cd frontend
npm run start

Default frontend dev server runs on:

http://localhost:4200

Setup Complete 🎉

You now have:

  • PostgreSQL running locally

  • UpGrade backend running on port 3030

  • UpGrade UI running on port 4200

Last updated