···7373- `bun run dev` - Start development server with hot reload on port 3000
7474- `bun run start` - Start production server
7575- `bun run debug` - Start server with Bun debugger
7676-- `bunx kysely-codegen --dialect bun-sqlite --env-file .env.local --out-file ./src/db/schema.d.ts` - Regenerate database schema types
7777-- `bunx --bun kysely-ctl migrate` - Run database migrations manually
7676+- `bun run db:codegen` - Regenerate database schema types from database
7777+- `bun run db:migrate` - Run database migrations manually
7878+- `bun run typecheck` - Run TypeScript type checking
78797980### Client Commands (from packages/client)
8081- `bun run dev` - Start development server with hot reload (port 5173)
8182- `bun run build` - Build production bundle
8282-- `bun run start` - Serve production build
8383+- `bun run start` - Start production server
8484+- `bun run lint` - Run ESLint
8385- `bun run typecheck` - Run TypeScript type checking
84868587### Typical Development Workflow
+5-3
README.md
···138138bun run dev # Start development server (port 3000)
139139bun run start # Start production server
140140bun run debug # Start with debugger
141141-bun run codegen # Regenerate database types
142142-bun run migrate # Run database migrations
141141+bun run db:codegen # Regenerate database types
142142+bun run db:migrate # Run database migrations
143143+bun run typecheck # Type check
143144```
144145145146### Client Commands (packages/client)
146147```bash
147148bun run dev # Start development server (port 5173)
148149bun run build # Build for production
149149-bun run start # Preview production build
150150+bun run start # Start production server
151151+bun run lint # Run ESLint
150152bun run typecheck # Type check
151153```
152154
+1
packages/client/CLAUDE.md
···3838- `bun run dev` - Start development server with hot reload (default port: 5173)
3939- `bun run build` - Build production bundle
4040- `bun run start` - Start production server (serves built bundle)
4141+- `bun run lint` - Run ESLint
4142- `bun run typecheck` - Run TypeScript type checking
42434344### Running from Root
+4-3
packages/server/CLAUDE.md
···3939- `bun run dev` - Start development server with hot reload on port 3000
4040- `bun run start` - Start production server
4141- `bun run debug` - Start server with Bun debugger
4242+- `bun run typecheck` - Run TypeScript type checking
42434344### Database
4444-- `bunx kysely-codegen --dialect bun-sqlite --env-file .env.local --out-file ./src/db/schema.d.ts` - Regenerate type-safe schema from database
4545-- `bunx --bun kysely-ctl migrate` - Shortcut for running migration CLI commands (migrations auto-run on server start)
4545+- `bun run db:codegen` - Regenerate type-safe schema from database
4646+- `bun run db:migrate` - Run database migrations manually (migrations auto-run on server start)
46474748### Running from Root
4849- `cd packages/server && bun run dev` - Direct package commands
···1851861. Create migration: manually create timestamped file in `src/db/migrations/`
1861872. Implement `up()` function (required) and `down()` function (optional)
1871883. Use `Kysely<any>` type for migration functions (frozen schema)
188188-4. Run `bunx kysely-codegen` to regenerate types after schema changes
189189+4. Run `bun run db:codegen` to regenerate types after schema changes
1891905. Migrations auto-execute on server start
190191191192## XRPC Endpoints