How oceankumar/parkease works
ParkEase is a mall-parking management application: drivers discover approved malls, check published bay availability for a time window, reserve, and manage bookings; mall owners submit accounts and mall profiles, then maintain parking inventory after approval. Admins approve owners and mall submissions. The React client calls an Express API backed by MongoDB. The graph combines sampled source relationships with README-documented capabilities; several feature routes and pages were not sampled, so those links rely on README evidence rather than inferred call chains.
Main entry points: App.jsx Page router · api.js Fetch client · Booking.js Booking records · Mall.js Mall records
Components 26
Web application
- Page router
client/src/App.jsx - Session state
client/src/context/AuthContext.jsx - Auth client
client/src/services/authService.js - Mall discovery
client/src/pages/MallDiscoveryPage.jsx - Bay availability
client/src/pages/ParkingAvailabilityPage.jsx - Driver bookings
client/src/pages/DashboardPage.jsx - Owner workspace
client/src/pages/AccountDashboard.jsx - Admin review
client/src/components/ReviewQueue.jsx - Fetch client
client/src/services/api.js
Identity and approval
- Authentication API
server/src/services/authService.js - Auth endpoints
server/src/routes/authRoutes.js - Access control
server/src/middleware/authenticate.js - Account approvals
server/src/routes/adminRoutes.js
Parking and bookings
- Mall profiles
server/src/routes/mallRoutes.js - Bay inventory
server/src/routes - Reservations
server/src/routes/bookingRoutes.js - Booking lifecycle
server/src/services/bookingLifecycle.js
Operations and reporting
- Guard operations
server/src/routes/guardRoutes.js - Analytics
server/src/routes/analyticsRoutes.js
API and persistence
- Express application
server/src/app.js - MongoDB
- Mall records
server/src/models/Mall.js - Booking records
server/src/models/Booking.js - User records
server/src/models/User.js
Other components
- Drivers and owners
- Mall administrators
Connections 37
- Drivers and owners → Page router: uses
client/src/App.jsx - Mall administrators → Page router: uses
client/src/App.jsx - Page router → Session state: wraps
client/src/App.jsx - Session state → Auth client: restores session
client/src/context/AuthContext.jsx - Auth client → Fetch client: requests
client/src/services/authService.js - Page router → Mall discovery: routes to
client/src/App.jsx - Page router → Bay availability: routes to
client/src/App.jsx - Page router → Driver bookings: routes to
client/src/App.jsx - Page router → Owner workspace: routes to
client/src/App.jsx - Page router → Admin review: routes to
client/src/App.jsx - Mall discovery → Fetch client: loads mall data
- Bay availability → Fetch client: loads availability
- Driver bookings → Fetch client: manages bookings
- Owner workspace → Fetch client: manages malls
- Admin review → Fetch client: reviews accounts
- Fetch client → Express application: calls REST API
README.md - Express application → Auth endpoints: mounts routes
server/src/app.js - Auth endpoints → Authentication API: delegates
- Authentication API → User records: reads and writes
server/src/services/authService.js - Authentication API → MongoDB: persists sessions
server/src/services/authService.js - Auth endpoints → Access control: authenticates requests
- Account approvals → User records: reviews owners
server/src/routes/adminRoutes.js - Account approvals → Mall records: reviews submissions
server/src/routes/adminRoutes.js - Mall profiles → Mall records: reads and writes
server/src/routes/mallRoutes.js - Mall profiles → Booking records: checks reservations
server/src/routes/mallRoutes.js - Bay inventory → Mall records: updates layouts
server/src/routes/inventoryRoutes.js - Bay inventory → Booking records: checks bay conflicts
server/src/routes/inventoryRoutes.js - Reservations → Booking records: creates and reads
server/src/routes/bookingRoutes.js - Reservations → Booking lifecycle: serializes bookings
server/src/routes/bookingRoutes.js - Reservations → Mall records: checks mall bays
server/src/routes/bookingRoutes.js - Reservations → MongoDB: transacts reservations
server/src/routes/bookingRoutes.js - Booking lifecycle → Booking records: manages lifecycle
- Guard operations → Booking records: supports gate work
- Analytics → MongoDB: reports parking activity
- Mall records → MongoDB: stores mall data
README.md - Booking records → MongoDB: stores reservations
README.md - User records → MongoDB: stores accounts
README.md