-
Install Dependencies
npm install
-
Set Up Environment Variables
cp .env.example .env
Edit
.envand add:NEXT_PUBLIC_SUPABASE_URL- From Supabase project settingsNEXT_PUBLIC_SUPABASE_ANON_KEY- From Supabase project settingsDATABASE_URL- From Supabase database settings (use connection pooling URL)
-
Set Up Database
npx prisma generate npx prisma db push
-
Run Development Server
npm run dev
-
Open Browser Navigate to http://localhost:3000
- Supabase project created
- Environment variables configured
- Database schema pushed to Supabase
- Row Level Security (RLS) enabled on tables
- RLS policies created (see DEPLOYMENT.md)
- Supabase Auth redirect URLs configured
- Test signup with magic link
- Test all features locally
Run: npx prisma generate
- Check your
DATABASE_URLis correct - Use the connection pooling URL from Supabase
- Ensure your Supabase project is active
- Verify
NEXT_PUBLIC_SUPABASE_URLandNEXT_PUBLIC_SUPABASE_ANON_KEY - Check Supabase Auth settings
- Ensure redirect URLs are configured
Run: npm install to ensure all dependencies are installed