How noid55/thebooking works
TheBooking is a study-room booking product delivered as two independent applications: an ASP.NET MVC app and an ASP.NET API with a React client. In both, students find rooms and manage bookings; the MVC app also documents open study sessions, participation, and messaging, while admins manage rooms, buildings, and equipment. The graph preserves those capabilities and the API/client split. Some links are omitted where sampled source does not show the caller; dashed links indicate documented capabilities whose implementation wiring was not sampled.
Main entry points: BookingDbContext.cs SQLite database · App.tsx Application routes · BookingController.cs Booking workflow · RoomListPage.tsx Room search and display
Components 22
MVC application
- Booking workflow
src/thebooking/Controllers/BookingController.cs - Room search and admin
src/thebooking/Controllers/RoomController.cs - Building admin
src/thebooking/Controllers/BuildingController.cs - Equipment admin
src/thebooking/Controllers/EquipmentController.cs - Session messaging
src/thebooking/Controllers/MessageController.cs - Accounts and roles
src/thebooking/Controllers/AccountController.cs - Booking rules
src/thebooking/Services/BookingService.cs
API application
- Booking endpoints
subapp2/api/Controllers/BookingAPIController.cs - Room endpoints
subapp2/api/Controllers/RoomAPIController.cs - Building endpoints
subapp2/api/Controllers/BuildingAPIController.cs - Equipment endpoints
subapp2/api/Controllers/EquipmentAPIController.cs - Booking rules
subapp2/api/Services/BookingService.cs
React client
- Application routes
subapp2/thebooking-react/src/App.tsx - Room search and display
subapp2/thebooking-react/src/rooms/RoomListPage.tsx - Room grids and tables
subapp2/thebooking-react/src/rooms/RoomGrid.tsx - Building management
subapp2/thebooking-react/src/buildings/BuildingListPage.tsx - Equipment management
subapp2/thebooking-react/src/equipment/EquipmentListPage.tsx - My bookings
subapp2/thebooking-react/src/bookings/MyBookingsPage.tsx - Room API client
subapp2/thebooking-react/src/services/roomService.ts - Booking API client
subapp2/thebooking-react/src/services/bookingService.ts
Booking data
- SQLite database
src/thebooking/DAL/BookingDbContext.cs
Other components
- Student or admin
Connections 24
- Student or admin → Booking workflow: manages bookings
- Student or admin → Room search and admin: searches rooms
- Student or admin → Session messaging: sends messages
- Student or admin → Accounts and roles: registers or signs in
- Booking workflow → Booking rules: validates
src/thebooking/Controllers/BookingController.cs - Booking workflow → SQLite database: reads and writes
- Room search and admin → SQLite database: reads and writes
- Building admin → SQLite database: manages records
- Equipment admin → SQLite database: manages records
- Session messaging → SQLite database: stores messages
- Booking endpoints → Booking rules: validates
subapp2/api/Controllers/BookingAPIController.cs - Booking endpoints → SQLite database: reads and writes
- Room endpoints → SQLite database: reads and writes
- Building endpoints → SQLite database: reads and writes
- Equipment endpoints → SQLite database: reads and writes
- Application routes → Room search and display: routes to
subapp2/thebooking-react/src/App.tsx - Application routes → Building management: routes to
subapp2/thebooking-react/src/App.tsx - Application routes → Equipment management: routes to
subapp2/thebooking-react/src/App.tsx - Application routes → My bookings: routes to
subapp2/thebooking-react/src/App.tsx - Room search and display → Room grids and tables: renders
subapp2/thebooking-react/src/rooms/RoomListPage.tsx - Room search and display → Room API client: requests rooms
subapp2/thebooking-react/src/rooms/RoomListPage.tsx - Room API client → Room endpoints: calls endpoints
subapp2/thebooking-react/src/services/roomService.ts - Booking API client → Booking endpoints: calls endpoints
subapp2/thebooking-react/src/services/bookingService.ts - My bookings → Booking API client: uses client