How sumithatagaledata/ai-based-smart-parking works
Smart Parking Management System is a FastAPI/SQLite application with a browser SPA. The principal journey is customer sign-in, slot discovery and advance reservation, followed by route guidance to the assigned bay; administrators manage parking operations and monitor bookings. The backend also supports vehicle entry/exit, allocation, search, road-network routing and a DSA learning lab. Edges reflect calls documented in excerpts or README claims; UI-to-API wiring and several unsampled endpoint details are not asserted.
Main entry points: main.py FastAPI routes · parking_service.py Parking operations · db.py SQLite store · app.js Parking SPA
Components 22
Browser experience
- Parking SPA
static/js/app.js - UI components
static/js/components.js - Parking map
static/js/parking_map.js - Algorithm lab UI
static/js/algo_lab.js - API client
static/js/api.js
API and services
- FastAPI routes
main.py - Authentication
services/auth_service.py - Security primitives
services/security.py - Advance bookings
services/booking_service.py - Parking operations
services/parking_service.py - Search indexing
services/search_service.py - Navigation service
services/graph_service.py - DSA lab service
services/lab_service.py
Persistent state
- SQLite store
database/db.py - Demo data
database/seed_data.py
DSA capabilities
- Linear structures
dsa/linear.py - Trees and heaps
dsa/trees.py - Hash table
dsa/hash_table.py - Algorithms
dsa/algorithms.py - Weighted graph
dsa/graph.py - Complexity analysis
dsa/complexity.py
Other components
- Customer / admin
Connections 30
- Customer / admin → Parking SPA: uses
README.md - Parking SPA → UI components: renders
- Parking SPA → API client: requests
- Parking SPA → Parking map: shows routes
- Parking SPA → Algorithm lab UI: opens lab
- API client → FastAPI routes: calls API
- FastAPI routes → Authentication: calls
main.py - FastAPI routes → Advance bookings: calls
main.py - FastAPI routes → Parking operations: calls
main.py - FastAPI routes → Search indexing: rebuilds indices
main.py - FastAPI routes → Navigation service: calls
main.py - FastAPI routes → DSA lab service: dispatches
main.py - Authentication → Security primitives: uses
services/auth_service.py - Authentication → SQLite store: reads/writes
services/auth_service.py - Security primitives → SQLite store: stores sessions
services/security.py - Advance bookings → SQLite store: reads/writes
services/booking_service.py - Advance bookings → Navigation service: gets directions
README.md - Parking operations → SQLite store: reads/writes
services/parking_service.py - Parking operations → Linear structures: uses
services/parking_service.py - Parking operations → Trees and heaps: uses
services/parking_service.py - Parking operations → Algorithms: uses
services/parking_service.py - Parking operations → Weighted graph: uses
services/parking_service.py - Search indexing → SQLite store: loads records
services/search_service.py - Search indexing → Hash table: indexes
services/search_service.py - Search indexing → Trees and heaps: indexes
services/search_service.py - Navigation service → SQLite store: loads network
services/graph_service.py - Navigation service → Weighted graph: routes on
services/graph_service.py - DSA lab service → Algorithms: runs
services/lab_service.py - DSA lab service → Complexity analysis: analyzes
- Demo data → SQLite store: populates
database/seed_data.py