How azmedia2006/quan-ly-doi-xe- works
FleetManage Pro is a fleet-management web application: staff sign in, use protected React screens to manage vehicles, drivers and trip dispatch, then record related expenses, maintenance and incidents; dashboards, reports and notifications expose operational results. The frontend calls a Django REST API, with domain records modeled in separate Django apps. The README documents PostgreSQL and operational monitoring/logging, but deployment files and those runtime integrations are absent from the supplied tree. Several domain screens and routes are visible in App.tsx but their implementation was not sampled, so their API connections are not asserted.
Main entry points: App.tsx App routing · api.ts API client · vehicles/models.py Vehicle records · fuel_expenses/models.py Expense records
Components 25
Web application
- App routing
frontend/src/App.tsx - Dashboard
frontend/src/pages/DashboardPage.tsx - Reports
frontend/src/pages/ReportsPage.tsx
Identity and access
- Auth state
frontend/src/context/AuthContext.tsx - Sign in
frontend/src/pages/LoginPage.tsx - User administration
frontend/src/pages/UsersPage.tsx - Settings
frontend/src/pages/SettingsPage.tsx
Fleet operations
- Vehicle screens
frontend/src/pages/VehiclesPage.tsx - Driver screens
frontend/src/pages/DriversPage.tsx - Trip scheduling
frontend/src/pages/SchedulesPage.tsx - Vehicle records
backend/apps/vehicles/models.py - Driver records
backend/apps/drivers/models.py - Trip records
backend/apps/schedules/models.py
Operational records
- Maintenance screens
frontend/src/pages/MaintenancePage.tsx - Expense screens
frontend/src/pages/ExpensesPage.tsx - Incident screens
frontend/src/pages/IncidentsPage.tsx - Notifications
frontend/src/pages/NotificationsPage.tsx - Maintenance records
backend/apps/maintenance/models.py - Expense records
backend/apps/fuel_expenses/models.py - Incident records
backend/apps/incidents/models.py - Notification service
backend/apps/notifications/signals.py
Backend API
- API client
frontend/src/services/api.ts - Accounts API
backend/apps/accounts/views.py
Other components
- Fleet staff
- PostgreSQL
Connections 33
- Fleet staff → App routing: uses
README.md - App routing → Auth state: provides auth
frontend/src/App.tsx - App routing → Sign in: routes to
frontend/src/App.tsx - App routing → Dashboard: routes to
frontend/src/App.tsx - App routing → Reports: routes to
frontend/src/App.tsx - App routing → Vehicle screens: routes to
frontend/src/App.tsx - App routing → Driver screens: routes to
frontend/src/App.tsx - App routing → Trip scheduling: routes to
frontend/src/App.tsx - App routing → Maintenance screens: routes to
frontend/src/App.tsx - App routing → Expense screens: routes to
frontend/src/App.tsx - App routing → Incident screens: routes to
frontend/src/App.tsx - App routing → Notifications: routes to
frontend/src/App.tsx - App routing → User administration: routes to
frontend/src/App.tsx - App routing → Settings: routes to
frontend/src/App.tsx - Auth state → API client: calls
frontend/src/context/AuthContext.tsx - Sign in → Auth state: uses
- Vehicle screens → API client: uses
- Driver screens → API client: uses
- Trip scheduling → API client: uses
- Maintenance screens → API client: uses
- Expense screens → API client: calls
frontend/src/pages/ExpensesPage.tsx - Incident screens → API client: calls
frontend/src/pages/IncidentsPage.tsx - Settings → API client: calls
frontend/src/pages/SettingsPage.tsx - API client → Accounts API: requests
- Accounts API → PostgreSQL: reads/writes
- Vehicle records → PostgreSQL: persists
- Driver records → Vehicle records: linked trips
- Trip records → Vehicle records: references
backend/apps/schedules/models.py - Trip records → Driver records: assigns
backend/apps/schedules/models.py - Maintenance records → Vehicle records: references
backend/apps/maintenance/models.py - Expense records → Vehicle records: references
backend/apps/fuel_expenses/models.py - Expense records → Driver records: references
backend/apps/fuel_expenses/models.py - Expense records → Trip records: references
backend/apps/fuel_expenses/models.py