How noormosia/nmushuttles works
NMU Shuttle is a shuttle-management backend, with an Android project also present in the tree but no Android runtime source or README description provided. The main user flow is student authentication and trip discovery, followed by booking; marshals validate bookings at boarding, while administrators configure schedules, routes, vehicles, and users. The backend also contains trip generation/lockout, waitlist, notification, breakdown, reporting, and analytics capabilities. Connections below rely on SOURCE INDEX references or the sampled check-in and database excerpts; unsampled subsystem behavior is represented without speculative call chains.
Main entry points: ShuttleDbContext.cs Shuttle database · LockoutGateService.cs Trip lockout · RollingInjectionService.cs Rolling trip generation · BookingsController.cs Bookings
Components 22
Rider access
- Authentication
Backend/NmuShuttle.Api/Controllers/AuthController.cs - Trip discovery
Backend/NmuShuttle.Api/Controllers/TripsController.cs - Bookings
Backend/NmuShuttle.Api/Controllers/BookingsController.cs - Booking rules
Backend/NmuShuttle.Api/Services/BookingService.cs
Trip operations
- Marshal trips
Backend/NmuShuttle.Api/Controllers/MarshalTripsController.cs - Boarding check-in
Backend/NmuShuttle.Api/Controllers/CheckInController.cs - Check-in rules
Backend/NmuShuttle.Api/Services/CheckInService.cs - Breakdown handling
Backend/NmuShuttle.Api/Controllers/BreakdownController.cs - Reports
Backend/NmuShuttle.Api/Controllers/ReportsController.cs
Administration
- Schedule management
Backend/NmuShuttle.Api/Controllers/Admin/ScheduleAdminController.cs - Fleet and stops
Backend/NmuShuttle.Api/Controllers/Admin/ShuttlesAdminController.cs - User management
Backend/NmuShuttle.Api/Controllers/Admin/UsersAdminController.cs - Admin analytics
Backend/NmuShuttle.Api/Controllers/Admin/AnalyticsAdminController.cs
Backend services
- Waitlist promotion
Backend/NmuShuttle.Api/Services/WaitlistPromotionService.cs - Rolling trip generation
Backend/NmuShuttle.Api/BackgroundServices/RollingInjectionService.cs - Trip lockout
Backend/NmuShuttle.Api/BackgroundServices/LockoutGateService.cs - Notifications
Backend/NmuShuttle.Api/Services/NotificationService.cs - SAST clock
Backend/NmuShuttle.Api/Infrastructure/SastClock.cs - Shuttle database
Backend/NmuShuttle.Api/Data/ShuttleDbContext.cs
Other components
- Student
- Marshal
- Administrator
Connections 23
- Student → Authentication: authenticates
Backend/NmuShuttle.Api/Controllers/AuthController.cs - Student → Trip discovery: requests trips
- Student → Bookings: books trip
- Bookings → Booking rules: delegates booking
Backend/NmuShuttle.Api/Controllers/BookingsController.cs - Booking rules → Shuttle database: reads and writes
Backend/NmuShuttle.Api/Services/BookingService.cs - Marshal → Marshal trips: views assignments
- Marshal → Boarding check-in: checks in riders
- Boarding check-in → Check-in rules: delegates validation
Backend/NmuShuttle.Api/Controllers/CheckInController.cs - Check-in rules → Shuttle database: validates and updates
Backend/NmuShuttle.Api/Services/CheckInService.cs - Administrator → Schedule management: manages schedules
Backend/NmuShuttle.Api/Controllers/Admin/ScheduleAdminController.cs - Schedule management → Shuttle database: reads and writes
Backend/NmuShuttle.Api/Controllers/Admin/ScheduleAdminController.cs - Administrator → Fleet and stops: manages fleet
Backend/NmuShuttle.Api/Controllers/Admin/ShuttlesAdminController.cs - Fleet and stops → Shuttle database: reads and writes
Backend/NmuShuttle.Api/Controllers/Admin/ShuttlesAdminController.cs - Administrator → User management: manages users
Backend/NmuShuttle.Api/Controllers/Admin/UsersAdminController.cs - User management → Shuttle database: reads and writes
Backend/NmuShuttle.Api/Controllers/Admin/UsersAdminController.cs - Administrator → Admin analytics: reviews analytics
- Administrator → Breakdown handling: handles breakdowns
- Administrator → Reports: reviews reports
- Rolling trip generation → Shuttle database: creates trips
Backend/NmuShuttle.Api/BackgroundServices/RollingInjectionService.cs - Rolling trip generation → SAST clock: uses SAST time
Backend/NmuShuttle.Api/BackgroundServices/RollingInjectionService.cs - Trip lockout → Shuttle database: reads schedules
Backend/NmuShuttle.Api/BackgroundServices/LockoutGateService.cs - Trip lockout → SAST clock: uses SAST time
Backend/NmuShuttle.Api/BackgroundServices/LockoutGateService.cs - Trip lockout → Waitlist promotion: promotes waitlist
Backend/NmuShuttle.Api/BackgroundServices/LockoutGateService.cs