Prerequisites
- Node.js 20+
- npm 10+
- A Supabase project (US region, pgvector extension enabled)
If you just want to try Verity without cloud dependencies, skip to the Docker demo — no Supabase or API keys needed.
Setup
Install dependencies
node_modules/.Seed the regulatory knowledge base
Project structure
frontend/ package is the Next.js application with all API routes. The backend/ package is a shared library — not a server. Both packages share types and config at build time via npm workspaces.
Commands
| Command | Description |
|---|---|
npm run dev | Start Next.js dev server |
npm run build | Build both packages for production |
npm test | Run all unit tests (backend + frontend) |
npm run lint | Lint the frontend |
npm run db:generate | Generate Drizzle migration files |
npm run db:migrate | Apply pending migrations |
npm run db:seed | Seed the regulatory knowledge base |
npm run test:e2e | Run Playwright E2E tests (headless) |
npm run test:e2e:ui | Run E2E tests with Playwright UI |