How adhithiya-77/-vehicle--breakdown--prediction- works
VehicleGuard AI is a fleet-monitoring and predictive-maintenance prototype. A fleet manager reviews dashboard, vehicle, analytics, alert, and maintenance views, or submits telemetry for a breakdown-risk prediction; risk results support prioritizing preventive maintenance. The frontend pages use a shared API client, while the backend and trained model provide the prediction service. The README documents the product workflow and capabilities; backend implementation details and the frontend-to-backend wiring were not excerpted, so those relationships are shown as unverified.
Main entry points: App.jsx App router · api.js API client · Shared.jsx Shared UI · Dashboard.jsx Fleet dashboard
Components 14
Fleet experience
- App router
frontend/src/App.jsx - Navigation
frontend/src/components/Navbar.jsx - Fleet dashboard
frontend/src/pages/Dashboard.jsx - Vehicle records
frontend/src/pages/Vehicles.jsx - Vehicle profile
frontend/src/pages/VehicleDetail.jsx - Fleet analytics
frontend/src/pages/Analytics.jsx - Maintenance alerts
frontend/src/pages/Alerts.jsx - Maintenance priorities
frontend/src/pages/Maintenance.jsx - Risk prediction form
frontend/src/pages/Predict.jsx - Shared UI
frontend/src/components/Shared.jsx
Service and prediction
- API client
frontend/src/services/api.js - Backend service
backend/app.py
ML artifact
- Breakdown model
ml/vehicle_breakdown_model.pkl
Other components
- Fleet manager
Connections 25
- Fleet manager → App router: uses
README.md - App router → Navigation: renders
frontend/src/App.jsx - App router → Fleet dashboard: routes to
frontend/src/App.jsx - App router → Vehicle records: routes to
frontend/src/App.jsx - App router → Vehicle profile: routes to
frontend/src/App.jsx - App router → Fleet analytics: routes to
frontend/src/App.jsx - App router → Maintenance alerts: routes to
frontend/src/App.jsx - App router → Risk prediction form: routes to
frontend/src/App.jsx - App router → Maintenance priorities: routes to
frontend/src/App.jsx - Fleet dashboard → API client: requests data
frontend/src/pages/Dashboard.jsx - Vehicle records → API client: requests data
frontend/src/pages/Vehicles.jsx - Vehicle profile → API client: requests data
frontend/src/pages/VehicleDetail.jsx - Fleet analytics → API client: requests data
frontend/src/pages/Analytics.jsx - Maintenance alerts → API client: requests data
frontend/src/pages/Alerts.jsx - Risk prediction form → API client: submits telemetry
frontend/src/pages/Predict.jsx - Maintenance priorities → API client: requests data
frontend/src/pages/Maintenance.jsx - Fleet dashboard → Shared UI: renders with
frontend/src/pages/Dashboard.jsx - Vehicle records → Shared UI: renders with
frontend/src/pages/Vehicles.jsx - Vehicle profile → Shared UI: renders with
frontend/src/pages/VehicleDetail.jsx - Fleet analytics → Shared UI: renders with
frontend/src/pages/Analytics.jsx - Maintenance alerts → Shared UI: renders with
frontend/src/pages/Alerts.jsx - Risk prediction form → Shared UI: renders with
frontend/src/pages/Predict.jsx - Maintenance priorities → Shared UI: renders with
frontend/src/pages/Maintenance.jsx - API client → Backend service: calls API
- Backend service → Breakdown model: predicts risk
README.md