- Go to https://supabase.com/dashboard
- Click "New Project"
- Choose organization and name: "ConstructAI Platform"
- Set database password (save this!)
- Select region closest to your users
- Click "Create new project"
- Go to SQL Editor in your Supabase dashboard
- Copy and paste the complete schema from
supabase-schema.sql - Run the SQL to create all tables and policies
# Get these from Supabase Project Settings > API
NEXT_PUBLIC_SUPABASE_URL=https://your-project-ref.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-public-key
SUPABASE_SERVICE_ROLE_KEY=your-service-role-secret-key
# Keep these the same
NEXTAUTH_URL=https://your-deployment-url.vercel.app
NEXTAUTH_SECRET=construction-ai-platform-secret-key-12345
NODE_ENV=production
- Go to Storage in Supabase dashboard
- Create bucket: "documents" (public: false)
- Create bucket: "bim-models" (public: false)
- Set up RLS policies for file access
- Go to Authentication > Settings
- Enable email provider
- Add site URL: https://your-deployment-url.vercel.app
- Configure redirect URLs for auth
- Install Supabase CLI:
npm i -g supabase - Login:
supabase login - Deploy edge functions for AI processing
Since Supabase focuses on backend services, we'll use:
- Supabase: Database, Auth, Storage, Real-time subscriptions
- Vercel: Frontend hosting (best Next.js support)
- Supabase Edge Functions: AI processing and file handling
This gives you the full power of Supabase backend with optimal Next.js hosting!