Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

fleetflow-app

FleetFlow Production Board · View Kanban Board →

Flutter driver client for FleetFlow — real login, assigned trips, push alerts on assign, pickup/deliver against fleetflow-api.

Demo Video

FleetFlow Driver App Demo Video

Screenshots & UI preview

Full gallery (active trips, history, alerts, map, proof photos SLA): docs/mobile-version-visual-preview/MOBILE_VERSION_VISUAL_PREVIEW.md

Stack

  • Flutter · Riverpod · go_router · Dio · flutter_map (OSM) · google_fonts
  • Notifications: REST inbox + SSE (/notifications/stream) + browser Notification on web

See fleetflow-docs/DRIVER_NOTIFICATIONS.md.

Prerequisites

  1. API running on port 3000 (fleetflow-infra Docker or local NestJS)
  2. Database seeded (pnpm prisma:seed / container seed) so demo users exist

Quick start

cd fleetflow-app
flutter pub get

Android emulator

# set in .env: FLEETFLOW_API_BASE_URL=http://10.0.2.2:3000/v1
flutter run

Edge / Chrome (web)

.env defaults to http://localhost:3000/v1 (not 10.0.2.2 — that host only works inside the Android emulator).

flutter run -d edge --web-port=52512

Optional override without editing .env:

flutter run -d edge --web-port=52512 --dart-define=FLEETFLOW_API_BASE_URL=http://localhost:3000/v1

Demo login credentials

Password for all seeded accounts: FleetFlow!2026

Role Email
Driver (app login) [email protected]
Superadmin [email protected]
Regional manager [email protected]
Head of warehouse [email protected]
Fleet operator [email protected]
Merchant admin [email protected]

Use [email protected] in this app.

Driver flow (real API)

  1. Sign in → JWT stored locally
  2. Active polls GET /v1/orders every 5s for ASSIGNED / PICKED_UP
  3. Open trip → map + navigate via Google Maps deep link
  4. Add departure photo → POST /v1/orders/:id/photos (type=DEPARTURE)
  5. Start Journey → POST /v1/orders/:id/pickup
  6. Add delivery photo → POST /v1/orders/:id/photos (type=DELIVERY)
  7. Complete Booking → POST /v1/orders/:id/deliver
  8. History shows DELIVERED / CANCELLED

Jobs appear only after a merchant creates an order that the matcher assigns to the seed driver (Alex Rivera, BIKE near Jakarta).

Full video demo (web + API + app): fleetflow-docs/DEMO_E2E.md

Testing & QA

flutter test test/widget
flutter test integration_test/app_test.dart

Full guide: fleetflow-docs/QA_TESTING.md

Related repos

Repo Role
fleetflow-api Backend API
fleetflow-web Operations portal
fleetflow-shared API contracts
fleetflow-infra Docker & local HA
fleetflow-docs Architecture docs

GitHub About (recommended)

Set Website in repo About → https://github.com/users/aldoprogrammer/projects/2

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages