How kumargosala24/smartrentalsystem works
Smart Rental Tracking System is a fleet-rental application: staff monitor equipment, manage rentals and simulated check-in/out, review alerts, forecast demand, and act on reallocation suggestions. The React shell presents these workflows through an API client to a FastAPI service; SQLite persists seeded operational data, while a background simulator updates telemetry and ML modules support anomaly detection, utilization scoring, forecasting, and recommendations. The graph retains the README’s major feature branches. Some backend endpoints and frontend views were not sampled, so their connections are shown only where documented or indexed.
Main entry points: App.jsx App Shell · api.js API Client · main.py REST API · database.py SQLite Store
Components 21
Rental Dashboard
- App Shell
frontend/src/App.jsx - Check-In / Out
frontend/src/components/CheckInOut.jsx - Fleet View
frontend/src/components/Fleet.jsx - Dashboard
frontend/src/components/Dashboard.jsx - Rentals View
frontend/src/components/Rentals.jsx - Alerts View
frontend/src/components/Alerts.jsx - Equipment Detail
frontend/src/components/EquipmentDetail.jsx - Forecast View
frontend/src/components/Forecast.jsx - Recommendations View
frontend/src/components/Recommendations.jsx - API Client
frontend/src/api.js
API Service
- REST API
backend/app/main.py - Runtime Config
backend/app/config.py
Fleet Operations
- Telemetry Simulator
backend/app/simulator.py
Intelligence
- Anomaly Engine
backend/app/ml/anomaly.py - Utilization Scoring
backend/app/ml/utilization.py - Demand Forecasting
backend/app/ml/forecast.py - Reallocation Engine
backend/app/ml/recommend.py
Data Layer
- SQLite Store
backend/app/database.py - Seed Data
backend/data - Postgres Reference
database/schema_postgres_reference.sql
Other components
- Rental Staff
Connections 30
- Rental Staff → App Shell: uses
README.md - App Shell → Check-In / Out: renders
frontend/src/App.jsx - App Shell → Fleet View: renders
frontend/src/App.jsx - App Shell → Dashboard: renders
frontend/src/App.jsx - App Shell → Rentals View: renders
frontend/src/App.jsx - App Shell → Alerts View: renders
frontend/src/App.jsx - App Shell → Equipment Detail: renders
frontend/src/App.jsx - App Shell → Forecast View: renders
frontend/src/App.jsx - App Shell → Recommendations View: renders
frontend/src/App.jsx - Check-In / Out → API Client: requests equipment and rental actions
frontend/src/components/CheckInOut.jsx - Fleet View → API Client: loads equipment
frontend/src/components/Fleet.jsx - Forecast View → API Client: loads forecasts
frontend/src/components/Forecast.jsx - Rentals View → API Client: loads rentals
frontend/src/components/Rentals.jsx - Recommendations View → API Client: loads suggestions
frontend/src/components/Recommendations.jsx - Dashboard → API Client: loads summary
- Alerts View → API Client: loads alerts
- Equipment Detail → API Client: loads equipment detail
- API Client → REST API: calls REST endpoints
README.md - REST API → SQLite Store: reads and writes
backend/app/main.py - REST API → Anomaly Engine: uses detection engine
backend/app/main.py - REST API → Demand Forecasting: uses forecasting engine
backend/app/main.py - REST API → Utilization Scoring: uses scoring rules
backend/app/main.py - REST API → Reallocation Engine: uses recommendation engine
backend/app/main.py - REST API → Telemetry Simulator: starts simulator
backend/app/main.py - Telemetry Simulator → Anomaly Engine: scores readings
backend/app/simulator.py - Telemetry Simulator → SQLite Store: updates telemetry state
README.md - SQLite Store → Seed Data: loads CSV seed data
README.md - SQLite Store → Runtime Config: uses database path
backend/app/database.py - Anomaly Engine → Runtime Config: uses thresholds
backend/app/ml/anomaly.py - SQLite Store → Postgres Reference: schema reference
README.md