bun run dev- Uses
bun run --hotfor near-instant hot reload - Fast startup (<100ms)
- Direct TypeScript execution
- All endpoints available with clean paths (e.g.,
http://localhost:3000/auth/session) - Perfect for rapid iteration
# Initialize local database (Run this first!)
bun db:init
# Reset database (deletes and recreates)
bun db:reset
# Run migrations
bun db:migrate
# Interactive SQL Shell
bun db:querybun run checkThis runs:
- TypeScript type check
- Production audit check
GET /auth/google- Initiate OAuthGET /auth/google/callback- OAuth callbackGET /auth/session- Check sessionPOST /auth/logout- LogoutPOST /auth/login- Login check
GET /data/config- Configuration (from Upstash Redis)GET /data/flags- Feature flags (from Upstash Redis)GET /media/:id- Media metadata
# Windows: Kill process on port 3000
netstat -ano | findstr :3000
taskkill /PID <PID> /FIf you get "Module not found" errors, ensure you are using bun to run the scripts:
bun db:initNode.js will not work with these scripts as they use Bun-native APIs.