A modern Fleet Management System built with React and Supabase to help organizations manage vehicles, drivers, trips, fuel usage, maintenance, HR, and compliance in one centralized platform.
The application provides role-based access control, secure authentication, and real-time database integration through Supabase.!
| Module | Features |
|---|---|
| π Vehicles | Full register, profiles, service schedule tracking |
| π€ Drivers | Driver profiles, license tracking, expiry alerts |
| β½ Fuel | Fill-up logs, cost tracking, consumption per vehicle |
| π§ Maintenance | Schedule, track, and cost all repairs and services |
| πΊοΈ Trips | Log trips, mileage, route and purpose tracking |
| π Compliance | Insurance, road licenses, fitness β expiry alerts |
| Accident reports, damage costs, resolution tracking | |
| π Reports | Fleet cost, fuel analysis, per-vehicle breakdown |
src/
β
βββ components/
β βββ layout/
β βββ Layout.js
β
βββ context/
β βββ SupabaseContext.js
β βββ ToastContext.js
β
βββ pages/
β βββ LoginPage.js
β βββ DashboardPage.js
β βββ UsersPage.js
β
β βββ vehicles/
β β βββ VehiclesPage.js
β
β βββ drivers/
β β βββ DriversPage.js
β
β βββ trips/
β β βββ TripsPage.js
β
β βββ fuel/
β β βββ FuelPage.js
β
β βββ maintenance/
β β βββ MaintenancePage.js
β
β βββ compliance/
β β βββ CompliancePage.js
β
β βββ incidents/
β β βββ IncidentsPage.js
β
β βββ reports/
β β βββ ReportsPage.js
β
β βββ hr/
β βββ EmployeesPage.js
β βββ PayrollPage.js
β βββ ExpensesPage.js
β
βββ App.js
cp .env.example .envEdit .env:
REACT_APP_SUPABASE_URL=https://xxxxxxxxxxxx.supabase.co
REACT_APP_SUPABASE_ANON_KEY=eyJxxxxxx...
npm install
npm start- Register for an account from the Login Page.
- After registration, your account will show "Awaiting Approval".
- An Administrator must approve your account from the Admin Dashboard β Users page.
- Once approved, sign in again to access the system.
| Role | Access |
|---|---|
| admin | Full access β users, all records, delete |
| manager | All modules, cannot manage users |
| staff | View + create records (trips, fuel, incidents) |
| viewer | Read-only |
npm run buildDeploy build/ to Netlify, Vercel, or any static host. Set env vars in the hosting dashboard.