Start Postgres
Local Postgres 16 runs in Docker:The connection string lives in
apps/backend/.env as DATABASE_URL
(postgres://trexi:trexi@localhost:5432/trexi).Services & ports
| App | URL | Notes |
|---|---|---|
| frontend | http://localhost:3000 | Next.js dev server (Turbopack) |
| backend | http://localhost:4000 | Express; /api/health, /api/orgs/sync, /api/orgs/me |
| postgres | localhost:5432 | Docker (pnpm db:up); db/user/pass all trexi |
NEXT_PUBLIC_API_URL; the backend allows the
frontend origin via CORS_ORIGIN. Keep these in sync if you change ports.