Local Setup
Prerequisites
- Node.js >= 20.0.0
- pnpm >= 10.30.3
- Docker Desktop
- Wrangler CLI (
npm install -g wrangler) - A Supabase project (or local Supabase via
supabase start)
Clone and install
git clone https://github.com/archetypal-ai/Chairman-Infrastructure.gitcd Chairman-Infrastructurepnpm installEnvironment setup
Copy the example env file and fill in your secrets:
cp packages/api-gateway/.dev.vars.example packages/api-gateway/.dev.varsRequired variables:
SUPABASE_URL=https://xxxx.supabase.coSUPABASE_SERVICE_ROLE_KEY=eyJ...UPSTASH_REDIS_REST_URL=https://xxxx.upstash.ioUPSTASH_REDIS_REST_TOKEN=xxxxANTHROPIC_API_KEY=sk-ant-xxxxAUTH_SECRET=your-local-secretStart the API gateway
pnpm dev# Starts Wrangler dev server on http://localhost:8787Start the dashboard
pnpm dev:dashboard# Starts Vite dev server on http://localhost:5173Start a docs site
cd packages/govern-docspnpm dev# Starts Astro dev server on http://localhost:4321Database migrations
pnpm db:migrateTypeScript checks
pnpm typecheck# Must report zero errors