Quick Start#
Requirements#
- Node.js 24.16.0
Setup#
Install Dependencies#
bashnpm ci
Configure Environment Variables#
bashcp .env.example .env
Edit .env with your configuration. See Environment Variables.
Generate strong random secrets like
JWT_SECRETandAPI_KEYwithopenssl rand -hex 32— don't ship the placeholders.
PostgreSQL connection string can be obtained from: Supabase, Neon, Railway
Run Database Migration#
bashnpm run db:migrate
Start Development Server#
bashnpm run dev
Create Admin User#
bash# Register an account first, then set as admin
npm run owner:set your@email.com
Access URL#
| Service | URL |
|---|---|
| App | http://localhost:3000 |
Common Commands#
| Command | Description |
|---|---|
npm run dev | Start dev server |
npm run build | Build for production |
npm start | Start production server |
npm run db:migrate | Run database migrations |
npm run owner:set <email> | Set admin |
npm run owner:remove <email> | Remove admin |
npm run owner:list | List all admins |