How jilbertvasquez/ticketing-system works
Ticketing-System is a small real-time ticket availability app: users view a ticket, join its SignalR group, request availability, and order tickets; administrators join the admin group to inspect availability and reset tickets. Angular routes and components invoke a shared RTC service, which sends hub commands and receives broadcasts. The ASP.NET Core hub applies orders and resets to an in-memory store and broadcasts updates. The README documents these capabilities; the UI ticket-list implementation and some hosting/configuration details were not sampled, so their wiring is not expanded here.
Main entry points: ticketing-rtc.service.ts RTC service · admin.component.ts Admin view · app.routes.ts UI routes · ticket-details.component.ts Ticket details
Components 14
Angular UI
- App bootstrap
ticketing-ui/src/main.ts - UI routes
ticketing-ui/src/app/app.routes.ts - Ticket view
ticketing-ui/src/app/ticket/ticket.component.ts - Ticket details
ticketing-ui/src/app/ticket/ticket-details/ticket-details.component.ts - Admin view
ticketing-ui/src/app/admin/admin.component.ts - Dialogs
ticketing-ui/src/app/_services/dialog.service.ts - RTC service
ticketing-ui/src/app/_services/ticketing-rtc.service.ts - App config
ticketing-ui/src/app/app.config.ts
SignalR API
- API host
ticketing-api/Program.cs - Ticket hub
ticketing-api/Hubs/TicketHub.cs
Ticket state
- In-memory tickets
ticketing-api/Hubs/TicketHub.cs
Other components
- User
- SignalR hub endpoint
- SignalR groups
Connections 18
- User → Ticket view: browses
- User → Admin view: manages
- App bootstrap → App config: loads
- App bootstrap → UI routes: starts
- UI routes → Ticket view: routes to
- UI routes → Admin view: routes to
- Ticket view → Ticket details: opens
- Ticket details → Dialogs: confirms
- Admin view → Dialogs: confirms
- Ticket details → RTC service: requests tickets
- Admin view → RTC service: requests admin actions
- App config → RTC service: starts connection
- RTC service → SignalR hub endpoint: invokes commands
- SignalR hub endpoint → API host: connects at
- API host → Ticket hub: maps hub
- Ticket hub → In-memory tickets: reads and updates
- Ticket hub → SignalR groups: joins and broadcasts
- SignalR groups → RTC service: delivers updates