Spaces:
Sleeping
Sleeping
|
Download docs/deployment.md from build-small-hackathon/lovegpt: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/spaces/build-small-hackathon/lovegpt/resolve/main/docs/deployment.md
- Command line
-
hf download hf://spaces/build-small-hackathon/lovegpt/docs/deployment.md
-
curl -L -o deployment.md https://huggingface.co/spaces/build-small-hackathon/lovegpt/resolve/main/docs/deployment.md
1.34 kB
| # 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 | |
| ``` | |