How omikolaj/the-p-league works
ThePLeague is an Angular frontend for a local basketball league, with public league information and team signup, schedules, a photo gallery, merchandise pre-orders, and URL-hidden administration. The user enters through the application shell and navigates to feature routes; sampled services fetch and mutate gallery and merchandise data through the backend API. The admin routes guard dashboard, schedule administration, and scoreboards. Schedule management, signup, and pre-order internals are represented from the file tree and README, but their call paths were not sampled, so those links are omitted.
Main entry points: app-routing.module.ts Feature routing · admin-routing.module.ts Admin routes · gallery.service.ts Gallery service · merchandise.service.ts Merchandise service
Components 18
Application shell
- Angular app
src/app/app.component.ts - Feature routing
src/app/app-routing.module.ts
Public features
- Schedules
src/app/views/schedule - Team signup
src/app/views/about/components/team-signup - Photo gallery
src/app/views/gallery/gallery-grid-list.component.ts - Merchandise store
src/app/views/merchandise/merchandise-list/merchandise-list.component.ts - Pre-order flow
src/app/core/services/pre-order/pre-order.service.ts
League administration
- Admin routes
src/app/views/admin/admin-routing.module.ts - Admin login
src/app/views/admin/admin-login/admin-login.component.ts - Schedule management
src/app/views/admin/schedule-administration/schedule-administration.component.ts - Scoreboards
src/app/views/admin/scoreboards/scoreboards.component.ts
Shared platform
- Gallery service
src/app/core/services/gallery/gallery.service.ts - Merchandise service
src/app/core/services/merchandise/merchandise.service.ts - Authentication
src/app/core/services/auth/auth.service.ts - Token refresh
src/app/core/interceptors/refresh-access-token/refresh-access-token.service.ts - Event bus
src/app/core/services/event-bus/event-bus.service.ts
Other components
- League user
- ASP.NET API
Connections 17
- League user → Angular app: uses
- Angular app → Feature routing: hosts routes
src/app/app.component.ts - Feature routing → Schedules: loads feature
src/app/app-routing.module.ts - Feature routing → Team signup: loads feature
src/app/app-routing.module.ts - Feature routing → Photo gallery: loads feature
src/app/app-routing.module.ts - Feature routing → Merchandise store: loads feature
src/app/app-routing.module.ts - Feature routing → Admin routes: loads feature
src/app/app-routing.module.ts - Admin routes → Admin login: routes to
src/app/views/admin/admin-routing.module.ts - Admin routes → Schedule management: guards and resolves
src/app/views/admin/admin-routing.module.ts - Admin routes → Scoreboards: guards and resolves
src/app/views/admin/admin-routing.module.ts - Gallery service → ASP.NET API: reads and updates
src/app/core/services/gallery/gallery.service.ts - Merchandise service → ASP.NET API: reads and updates
src/app/core/services/merchandise/merchandise.service.ts - Pre-order flow → ASP.NET API: submits orders
- Authentication → ASP.NET API: authenticates
src/app/core/services/auth/auth.service.ts - Token refresh → Authentication: refreshes token
src/app/core/interceptors/refresh-access-token/refresh-access-token.service.ts - Gallery service → Event bus: emits status
src/app/core/services/gallery/gallery.service.ts - Merchandise service → Event bus: emits status
src/app/core/services/merchandise/merchandise.service.ts