How rushikeshade2005/smartpark-intelligent-parking-management-system works
SmartPark is a parking discovery, reservation, payment, and operations platform. Drivers browse nearby lots, select a slot, book and pay, then manage check-in/out, notifications, and reviews; operators manage inventory and monitor activity. The graph preserves documented API domains and dashboard capabilities. Some backend domains and frontend pages were not sampled, so their internal calls are not asserted; edges reflect the server wiring, cited source references, or excerpts.
Main entry points: server.js API server and routing · bookingController.js Booking lifecycle · api.js HTTP API client · adminController.js Admin reporting
Components 32
Driver and admin app
- Web app routing
frontend/src/App.jsx - Authentication state
frontend/src/context/AuthContext.jsx - Lot discovery and maps
frontend/src/pages/public/NearbyParking.jsx - Lot details
frontend/src/pages/public/ParkingDetail.jsx - Booking workflow
frontend/src/pages/user/BookParking.jsx - User dashboard
frontend/src/pages/user/UserDashboard.jsx - Admin operations
frontend/src/pages/admin/ManageParkingLots.jsx - Admin analytics
frontend/src/pages/admin/AdminAnalytics.jsx - HTTP API client
frontend/src/services/api.js - Live updates client
frontend/src/services/socket.js
Backend API
- API server and routing
backend/server.js - Authentication
backend/controllers/authController.js - Contact messaging
backend/controllers/contactController.js - User, CMS, export, settings, notifications, vehicles
backend/controllers
Parking operations
- Lot and slot API
backend/controllers/parkingController.js - Booking lifecycle
backend/controllers/bookingController.js - Payment handling
backend/controllers/paymentController.js - Reviews
backend/controllers/reviewController.js - Admin reporting
backend/controllers/adminController.js - Booking records
backend/models/Booking.js - Parking lot records
backend/models/ParkingLot.js - Parking slot records
backend/models/ParkingSlot.js - Review records
backend/models/Review.js
Platform services
- JWT access control
backend/middleware/auth.js - User accounts
backend/models/User.js - Notifications
backend/models/Notification.js - Booking scheduler
backend/services/bookingScheduler.js - Email delivery
backend/services/emailService.js - Realtime event handling
backend/services/socketHandler.js - MongoDB
Other components
- Driver or operator
- SMTP or Ethereal
Connections 48
- Driver or operator → Web app routing: uses
frontend/src/App.jsx - Web app routing → Lot discovery and maps: routes to
frontend/src/App.jsx - Web app routing → Booking workflow: routes to
frontend/src/App.jsx - Web app routing → Admin operations: routes to
frontend/src/App.jsx - Web app routing → Admin analytics: routes to
frontend/src/App.jsx - Authentication state → HTTP API client: calls
frontend/src/context/AuthContext.jsx - Lot discovery and maps → HTTP API client: fetches data
- Lot details → HTTP API client: fetches data
frontend/src/pages/public/ParkingDetail.jsx - Booking workflow → HTTP API client: calls
frontend/src/pages/user/BookParking.jsx - Booking workflow → Live updates client: subscribes
frontend/src/pages/user/BookParking.jsx - Admin operations → HTTP API client: calls
frontend/src/pages/admin/ManageParkingLots.jsx - Admin analytics → HTTP API client: fetches data
- HTTP API client → API server and routing: sends requests
- API server and routing → Authentication: mounts routes
backend/server.js - API server and routing → Lot and slot API: mounts routes
backend/server.js - API server and routing → Booking lifecycle: mounts routes
backend/server.js - API server and routing → Payment handling: mounts routes
backend/server.js - API server and routing → Admin reporting: mounts routes
backend/server.js - API server and routing → Contact messaging: mounts routes
backend/server.js - API server and routing → Reviews: mounts routes
backend/server.js - API server and routing → User, CMS, export, settings, notifications, vehicles: mounts routes
backend/server.js - API server and routing → Realtime event handling: initializes
backend/server.js - API server and routing → Booking scheduler: starts
backend/server.js - Authentication → User accounts: reads and writes
backend/controllers/authController.js - Authentication → Email delivery: sends mail
backend/controllers/authController.js - JWT access control → User accounts: loads user
backend/middleware/auth.js - Lot and slot API → Parking lot records: reads and writes
backend/controllers/parkingController.js - Lot and slot API → Parking slot records: reads and writes
backend/controllers/parkingController.js - Lot and slot API → Review records: reads
backend/controllers/parkingController.js - Booking lifecycle → Booking records: reads and writes
backend/controllers/bookingController.js - Booking lifecycle → Parking slot records: updates
backend/controllers/bookingController.js - Booking lifecycle → Parking lot records: updates
backend/controllers/bookingController.js - Booking lifecycle → User accounts: updates
backend/controllers/bookingController.js - Booking lifecycle → Notifications: creates
backend/controllers/bookingController.js - Booking lifecycle → Email delivery: sends mail
backend/controllers/bookingController.js - Booking lifecycle → Realtime event handling: emits events
- Reviews → Booking records: checks booking
backend/controllers/reviewController.js - Reviews → Review records: reads and writes
backend/controllers/reviewController.js - Reviews → Notifications: uses
backend/controllers/reviewController.js - Admin reporting → User accounts: queries
backend/controllers/adminController.js - Admin reporting → Booking records: queries
backend/controllers/adminController.js - Admin reporting → Parking lot records: queries
backend/controllers/adminController.js - Admin reporting → Parking slot records: queries
backend/controllers/adminController.js - Admin reporting → Payment handling: reports payments
- Booking scheduler → Booking records: updates bookings
backend/services/bookingScheduler.js - Booking scheduler → Parking slot records: updates slots
backend/services/bookingScheduler.js - Booking scheduler → Parking lot records: updates lots
backend/services/bookingScheduler.js - Booking scheduler → Notifications: creates
backend/services/bookingScheduler.js