Local Development Setup
1. Clone the Repository
2. Install Dependencies
3. Configure Environment Variables
.env.local with your Supabase credentials (see Environment Variables for the full reference):
4. Set Up the Database
Follow the Supabase Setup guide to create your project and run migrations.5. Start the Development Server
6. Create a User Account
- Click “Sign Up” on the login page
- Enter your email and password
- Check your email for the confirmation link (or disable email confirmation in Supabase Auth settings for local dev)
Common Commands
| Command | Purpose |
|---|---|
npm run dev | Start dev server (port 3000) |
npm run build | Production build |
npm run lint | Run ESLint |
npx tsc --noEmit | Type check without emitting |
npm run test | Run unit tests (Vitest) |
npm run test -- --run | Run tests once (no watch) |
npx playwright test | Run E2E tests |
Troubleshooting
Port 3000 already in use
Port 3000 already in use
Kill the process using port 3000:Or start on a different port:
Supabase connection errors
Supabase connection errors
- Verify your
.env.localvalues match Supabase Dashboard > Settings > API - Ensure your Supabase project is active (free tier pauses after inactivity)
- Check that migrations have been run
TypeScript errors after pulling
TypeScript errors after pulling