All available npm scripts for development, testing, and deployment.
| Command | What it does |
|---|---|
npm run dev | Start development server on http://localhost:3000 |
npm run dev:sse | Start dev server with SSE support (when Realtime module is active) |
npm run build | Production build |
npm run start | Start production server (auto-runs prisma migrate deploy if schema exists) |
| Command | What it does |
|---|---|
npm run check | TypeScript typecheck + ESLint (run before every commit) |
npm run typecheck | TypeScript only (tsc --noEmit) |
npm run lint | ESLint only |
npm run format | Prettier auto-format (writes files) |
npm run format:check | Prettier check (read-only, used in CI) |
npm run test | Run Vitest tests |
| Command | What it does |
|---|---|
npm run db:generate | Generate a new Prisma migration |
npm run db:migrate | Run migrations (production) |
npm run db:push | Push schema to DB (development, no migration file) |
npm run db:studio | Open Prisma Studio GUI in browser |
npm run dev— start codingnpm run check— verify before committingnpm run test— run testsnpm run build— verify production build worksnpm run start— test production locally