How chhana-chea/sereyromanea-parking-system works
MotorPark is an IoT-enabled motorcycle parking and management system. Riders use a browser kiosk for self-service check-in and ticketing; staff use the management console to monitor spaces, verify vehicles with camera captures, and process check-outs and fees. Managers administer accounts, camera settings, and financial reports. The Flask backend coordinates these workflows with PostgreSQL, local image storage, and an ESP32-CAM. Several responsibilities are described in the README but their route implementations were not sampled, so those documented relationships cite the README; the graph does not infer calls among backend features.
Main entry points: script.js Browser workflows · app.py Parking and ticket API · index.html Management console · auth.py Authentication and accounts
Components 16
Browser clients
- Management console
frontend/index.html - Customer kiosk
frontend/mobile_scanner.html - Ticket view
frontend/ticket.html - Browser workflows
frontend/script.js
Parking operations
- Parking and ticket API
backend/app.py - Camera proxy and frame cache
backend/app.py - Camera configuration
backend/camera_config.json
Access and reporting
- Authentication and accounts
backend/auth.py - Financial and shift reports
backend/app.py
Data and IoT
- Capture image files
uploads/parking - PostgreSQL records
backend/database.sql - Board pin mapping
esp32cam/board_config.h
Other components
- Arriving rider
- Parking staff
- System manager
- ESP32-CAM
esp32cam/esp32cam.ino
Connections 19
- Arriving rider → Customer kiosk: uses
README.md - Parking staff → Management console: uses
README.md - System manager → Management console: uses
README.md - Management console → Browser workflows: runs
README.md - Customer kiosk → Browser workflows: runs
README.md - Browser workflows → Parking and ticket API: requests API
frontend/script.js - Browser workflows → Camera proxy and frame cache: requests snapshots
frontend/script.js - Browser workflows → Authentication and accounts: submits login
frontend/script.js - Parking and ticket API → PostgreSQL records: reads and writes
README.md - Authentication and accounts → PostgreSQL records: reads and writes accounts
backend/auth.py - Parking and ticket API → Capture image files: stores captures
README.md - Camera proxy and frame cache → ESP32-CAM: fetches frames
backend/app.py - Camera proxy and frame cache → Camera configuration: reads IP setting
backend/app.py - Parking and ticket API → Camera proxy and frame cache: uses verification captures
README.md - Browser workflows → Ticket view: renders ticket
README.md - Browser workflows → Financial and shift reports: requests reports
frontend/script.js - Financial and shift reports → PostgreSQL records: queries revenue
backend/app.py - System manager → Authentication and accounts: manages accounts
backend/auth.py - ESP32-CAM → Board pin mapping: uses pin map