# Deployment ## Backend Build command: ```powershell npm install npm run build ``` Start command: ```powershell npm start ``` Required environment variables are listed in `backend/.env.example`. Set the Stripe webhook endpoint to: ```text https://your-backend-domain.com/api/payments/webhook ``` ## Supabase Apply: ```text backend/supabase/migrations/001_initial_schema.sql ``` Enable Realtime publication for: - `matches` - `conversations` - `messages` Keep the service role key out of the Flutter app. Only the backend receives it. ## Flutter Web ```powershell cd frontend flutter pub get flutter build web ` --dart-define=SUPABASE_URL=https://your-project.supabase.co ` --dart-define=SUPABASE_ANON_KEY=your-anon-key ` --dart-define=BACKEND_URL=https://your-backend-domain.com/api ``` Deploy `frontend/build/web`. ## Android and iOS ```powershell cd frontend flutter build apk --release ` --dart-define=SUPABASE_URL=https://your-project.supabase.co ` --dart-define=SUPABASE_ANON_KEY=your-anon-key ` --dart-define=BACKEND_URL=https://your-backend-domain.com/api ``` ```powershell cd frontend flutter build ipa --release ` --dart-define=SUPABASE_URL=https://your-project.supabase.co ` --dart-define=SUPABASE_ANON_KEY=your-anon-key ` --dart-define=BACKEND_URL=https://your-backend-domain.com/api ```