How knamrataa/fleetmanagementplatform works
FleetFlow is a role-based fleet-management application for customer trip requests, dispatcher assignment, driver trip execution, fleet tracking, and supporting finance, maintenance, and administration. Users enter through the web app and its role-specific pages; the backend exposes API routes and persists operational records in MongoDB. The sampled code confirms finance and administration route dispatch, selected model access, and live tracking infrastructure; several other domain modules are represented from the file tree, so uncertain internal wiring is intentionally omitted.
Main entry points: server.js API and realtime server · App.jsx Role routing · api.js HTTP API client · models Operational records
Components 28
Web experience
- Role routing
frontend/src/App.jsx - Trip management
frontend/src/pages/TripManagerDashboard.jsx - Customer portal
frontend/src/pages/CustomerTripRequest.jsx - Driver portal
frontend/src/pages/DriverTrips.jsx - Finance dashboard
frontend/src/pages/FinanceManagerDashboard.jsx - Maintenance dashboard
frontend/src/pages/MaintenanceManagerDashboard.jsx - HTTP API client
frontend/src/services/api.js
Fleet operations
- Trip request routes
backend/routes/tripRequestRoutes.js - Trip manager routes
backend/routes/tripManagerRoutes.js - Driver routes
backend/routes/driverPortalRoutes.js - Tracking routes
backend/routes/trackingRoutes.js - Driver trip actions
backend/controllers/driverController.js - Trip request handling
backend/controllers/tripRequestController.js - Assignment handling
backend/controllers/tripManagerController.js - Tracking service
backend/services/trackingService.js - Live tracking socket
backend/realtime/trackingSocket.js
Business services
- Finance routes
backend/routes/financeRoutes.js - Admin routes
backend/routes/adminRoutes.js - Finance workflows
backend/controllers/financeController.js - Administration
backend/controllers/adminController.js
Platform and state
- API and realtime server
backend/server.js - Authentication routes
backend/routes/authRoutes.js - Notifications
backend/services/notificationService.js - Operational records
backend/models - MongoDB connection
backend/config/db.js
Other components
- Role-based users
- MongoDB
- Brevo email
Connections 32
- Role-based users → Role routing: use
- Role routing → Trip management: route to
- Role routing → Customer portal: route to
- Role routing → Driver portal: route to
- Role routing → Finance dashboard: route to
- Role routing → Maintenance dashboard: route to
- Trip management → HTTP API client: request
- Customer portal → HTTP API client: request
- Driver portal → HTTP API client: request
- Finance dashboard → HTTP API client: request
- Maintenance dashboard → HTTP API client: request
- HTTP API client → API and realtime server: HTTP request
- API and realtime server → Authentication routes: mounts
- API and realtime server → Trip request routes: mounts
- API and realtime server → Trip manager routes: mounts
- API and realtime server → Driver routes: mounts
- API and realtime server → Tracking routes: mounts
- API and realtime server → Finance routes: mounts
- API and realtime server → Admin routes: mounts
- Finance routes → Finance workflows: dispatches
- Admin routes → Administration: dispatches
- Finance workflows → Operational records: reads and writes
- Administration → Operational records: reads and writes
- Driver trip actions → Operational records: trip records
- Trip request handling → Operational records: trip requests
- Assignment handling → Operational records: assignments
- Tracking service → Operational records: tracking data
- MongoDB connection → MongoDB: connects
- API and realtime server → MongoDB connection: connects
- API and realtime server → Live tracking socket: registers
- Driver trip actions → Notifications: notifies
- Notifications → Brevo email: sends email