Local Development
Prerequisites
Section titled “Prerequisites”- Node.js 20+
- pnpm 9+
- Cloudflare account with
CLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_ID(via direnv)
cd web-adminpnpm install
# Apply D1 migrations locallypnpm db:migrate:local
# Start API + web in parallelpnpm devEnvironment
Section titled “Environment”Create apps/api/.dev.vars:
AUTH_SECRET=dev-secret-change-meCreate apps/web/.env:
VITE_API_BASE_URL=http://localhost:8787The Vite dev server proxies /api requests to the Worker on port 8787.