Local Development Setup
Prerequisites
Section titled “Prerequisites”- Node.js 18+ (project
enginesspecify Node 20+ for runtime) - Git 2.30+
- PostgreSQL/MySQL/SQLite (PostgreSQL recommended)
Install dependencies
Section titled “Install dependencies”npm installEnvironment
Section titled “Environment”cp .env.example .envSet required values like JWT_SECRET, SESSION_SECRET, INTERNAL_HOOK_SECRET, and SITE_URL.
Database
Section titled “Database”npm run db:pushSeed admin user
Section titled “Seed admin user”bun run scripts/seed-admin.tsRun dev server
Section titled “Run dev server”npm run devOpen the app at http://localhost:3000.
Useful scripts
Section titled “Useful scripts”npm run db:generatenpm run db:migratenpm run db:studionpm run lintnpm run test