Skip to Content
InfrastructureDevelopment SetupPort & Config Reference

Port & Configuration Reference

Quick reference for all ports, URLs, and configurations in the Earna AI monorepo.

Development Ports

ProjectPortURLCommand
Console3000http://localhost:3000 pnpm --filter console dev
Docs3002http://localhost:3002 pnpm --filter docs-nextra dev
TigerBeetle3003tb://0@localhost:3003docker compose up -d
Credit Engine3004http://localhost:3004 pnpm --filter credit-engine dev
Apps3005http://localhost:3005 pnpm --filter apps dev
Grafana (Local)3006http://localhost:3006 docker compose up -d
StatsD8125UDP localhost:8125Auto-started with monitoring
Prometheus9090http://localhost:9090 docker compose up -d

Production URLs

ProjectProduction URLPlatform
Appshttps://earna.sh Vercel
Consolehttps://console.earna.sh Vercel
Docshttps://docs.earna.sh Vercel
Credit Enginehttps://credit.earna.sh Vercel
TigerBeetletb://0@104.154.31.249:3003GKE
Grafanahttp://34.172.102.114 GKE

Infrastructure Services (GKE)

ServiceInternal AddressExternal AddressNamespace
TigerBeetletigerbeetle.tigerbeetle:3003104.154.31.249:3003tigerbeetle
Prometheusprometheus-server.monitoring:80Internal onlymonitoring
Grafanagrafana.monitoring:8034.172.102.114:80monitoring
StatsD Exporterstatsd-exporter.observability:8125Internal onlyobservability
CloudSQL (Temporal)10.147.0.2:5432Private IP onlyN/A

Package Names (for —filter)

DirectoryPackage NameFilter Command
apps/earna-ai--filter=earna-ai
console/console--filter=console
docs-nextra/docs-nextra--filter=docs-nextra
credit-engine/credit-engine--filter=credit-engine

Vercel Build Commands

ProjectBuild CommandInstall Command
Appspnpm turbo build --filter=earna-aipnpm install
Consolepnpm turbo build --filter=consolepnpm install
Docspnpm turbo build --filter=docs-nextrapnpm install
Credit Enginecd .. && pnpm turbo build --filter=credit-enginepnpm install

Note: Credit Engine has cd .. because its vercel.json might be configured with a different root directory setting.

Common Commands

Run All Projects

# Start all dev servers (each on its own port) pnpm turbo dev # Build all projects pnpm turbo build # Type check all projects pnpm turbo typecheck

Run Specific Project

# From monorepo root pnpm turbo dev --filter=console pnpm turbo build --filter=apps pnpm turbo typecheck --filter=credit-engine # Or using pnpm directly pnpm --filter console dev pnpm --filter apps build pnpm --filter credit-engine typecheck

Run Multiple Projects

# Run console and apps together pnpm turbo dev --filter=console --filter=apps # Build docs and credit-engine pnpm turbo build --filter=docs-nextra --filter=credit-engine

Project Scripts

Console (port 3000)

{ "dev": "next dev", "build": "next build", "start": "next start", "type-check": "tsc --noEmit", "lint": "next lint" }

Apps (port 3005)

{ "dev": "next dev -p 3005", "build": "next build", "start": "next start -p 3005", "typecheck": "tsc --noEmit", "lint": "next lint" }

Docs-Nextra (port 3002)

{ "dev": "next dev -p 3002", "build": "next build", "start": "next start", "typecheck": "tsc --noEmit" }

Credit Engine (port 3004)

{ "dev": "next dev --port 3004", "build": "next build", "start": "next start --port 3004", "type-check": "tsc --noEmit", "lint": "next lint" }

Database Commands

Console

# No database - uses Supabase

Apps

pnpm --filter apps db:generate # Generate Prisma client pnpm --filter apps db:push # Push schema to database pnpm --filter apps db:migrate # Run migrations pnpm --filter apps db:studio # Open Prisma Studio

Credit Engine

pnpm --filter credit-engine db:generate # Generate Prisma client pnpm --filter credit-engine db:push # Push schema to database pnpm --filter credit-engine db:migrate # Run migrations pnpm --filter credit-engine db:studio # Open Prisma Studio

Environment Files

earna-ai/ ├── .env.example # Root example ├── .env.local # Root local (gitignored) ├── apps/ │ ├── .env.example │ └── .env.local ├── console/ │ ├── .env.example │ └── .env.local ├── credit-engine/ │ ├── .env.example │ └── .env.local └── docs-nextra/ └── .env.local # No .env.example (no secrets needed)

Quick Troubleshooting

Port Already in Use

# Find process using port lsof -i :3000 # Kill process kill -9 [PID] # Or run on different port PORT=3001 pnpm dev

Clear All Caches

# Clear Turborepo cache rm -rf .turbo # Clear Next.js caches rm -rf apps/.next console/.next docs-nextra/.next credit-engine/.next # Clear node_modules and reinstall rm -rf node_modules pnpm-lock.yaml pnpm install

Verify Setup

# Check all projects build pnpm turbo build # Run type checking pnpm turbo typecheck # Check which ports are in use lsof -i :3000,3002,3004,3005
Last updated on