🚀 Join the waitlist now! waitlist.floot.dev
LogoFlootdocs

Useful Commands

Key command-line tools and scripts for efficient Floot development.

Flutter

Run Flutter tests

Terminal
flutter test --dart-define-from-file .env.test

Generate l10n translations

Terminal
flutter gen-l10n

Run the app on Chrome (port: 3000)

Terminal
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 folder

Serve Edge Functions locally

Terminal
supabase functions serve --env-file .env.local --import-map ./functions/deno.json --no-verify-jwt

Run Deno tests

Terminal
deno test -A ./path/to/test/file --env="./.env.local" --import-map="./functions/deno.json"

Generate Supabase database types

Terminal
supabase gen types -s public,stripe  --local > functions/_shared/database.types.ts

Forwarding Stripe webhook events to local Supabase instance

Terminal
stripe listen --forward-to localhost:54321/functions/v1/stripe-webhook

Emulator

Launch iOS emulator from URL scheme

Terminal
/usr/bin/xcrun simctl openurl booted "<your.scheme>://<host>/<path>"

Launch Android emulator from URL scheme

Terminal
adb shell am start -a android.intent.action.VIEW -d "<your.scheme>://<host>/<path>"