- Go to https://supabase.com and sign up/login
- Click "New Project"
- Fill in project details and wait for it to be created (~2 minutes)
- In Supabase dashboard → Settings → API
- Copy:
- Project URL
- anon/public key
Create .env.local in your project root:
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your_anon_key_hereThis is the step you're missing!
- In Supabase dashboard, go to SQL Editor
- Click New Query
- Copy the entire contents of
supabase_migration.sql - Paste it into the SQL Editor
- Click Run (or press Ctrl+Enter)
- Wait for "Success" message
This will create all required tables:
- ✅ profiles
- ✅ spots
- ✅ invitations
- ✅ payments
- ✅ chat_messages
- ✅ moments
- Go to Database → Replication
- Enable replication for:
spotsinvitationspaymentschat_messages
npm run dev- Login with:
ramvj2005@gmail.com/ramkumar - Try creating a spot
- Check History page
Solution: You haven't run the SQL migration yet. Go to Step 4 above.
Solution:
- Make sure you ran the SQL migration (Step 4)
- Check browser console for detailed error
- Verify your
.env.localhas correct credentials
- Check Supabase dashboard → Table Editor → verify tables are there
- Check Authentication → Policies → verify RLS policies exist
- Try refreshing the page
Check the detailed guides:
SUPABASE_SETUP.md- Full setup guideDATABASE_SCHEMA.md- Database structure details