Useful Commands
Key command-line tools and scripts for efficient Floot development.
Flutter
Run Flutter tests
flutter test --dart-define-from-file .env.test
Generate l10n translations
flutter gen-l10n
Run the app on Chrome (port: 3000)
flutter run -d chrome --web-hostname 127.0.0.1 --web-port 3000 --dart-define-from-file .env.local
Supabase
Run these commands from
./supabase
folderServe Edge Functions locally
supabase functions serve --env-file .env.local --import-map ./functions/deno.json --no-verify-jwt
Run Deno tests
deno test -A ./path/to/test/file --env="./.env.local" --import-map="./functions/deno.json"
Generate Supabase database types
supabase gen types -s public,stripe --local > functions/_shared/database.types.ts
Forwarding Stripe webhook events to local Supabase instance
stripe listen --forward-to localhost:54321/functions/v1/stripe-webhook
Emulator
Launch iOS emulator from URL scheme
/usr/bin/xcrun simctl openurl booted "<your.scheme>://<host>/<path>"
Launch Android emulator from URL scheme
adb shell am start -a android.intent.action.VIEW -d "<your.scheme>://<host>/<path>"