Prerequisites
- Node.js ≥ 22 — the build uses Edge runtime features that require recent V8.
- pnpm ≥ 10 —
corepack enablethencorepack prepare pnpm@latest --activate, or follow pnpm.io/installation. - PostgreSQL — local Postgres for dev (Postgres.app on macOS,
brew install postgresql, or Docker). For production: Neon, Supabase, Railway, Crunchy Bridge — any of them work.
1. Clone & install
pnpm install --no-frozen-lockfile unless you mean to
upgrade. CI uses --frozen-lockfile.
2. Configure environment
.env.local and set at minimum:
3. Push the schema
src/db/*.schema.ts) against the database and applies the
changes directly. Use it for dev. For production, see
Deploying to Vercel → “Database migrations”.
4. Run dev
http://localhost:3000. The marketing site renders, the AI chat demo works
(/demos/chat runs on the offline mock provider), and you can sign up an admin user
via /register.
5. Sanity-check the install
What’s next
- Quickstart — wire your own product in 10 minutes
- Configuration — what
src/config/site.tscontrols - Deploying to Vercel — push to prod