How mahbub9277/sportzonebd works
SportZoneBD is a sports-streaming platform with a React client and an Express/Prisma API. Users browse matches and channels, watch streams, and can access premium content through subscriptions and payments; staff manage matches and other platform content. The graph highlights those domain areas and shared infrastructure. Evidence is limited to the supplied source index and excerpts; unsampled features are represented by their exact tree directories, and uncertain links are omitted.
Main entry points: prisma.ts PostgreSQL database · admin.matches.controller.ts Match administration · notification.service.ts Notifications · App.tsx Web app
Components 21
Web experience
- Web app
frontend/src/App.tsx - Watch experience
frontend/src/pages/explore/WatchChannelPage.tsx - Match browsing
frontend/src/pages/matches/AllMatchesPage.tsx
Sports content
- Match API
backend/src/controllers/matchController.ts - Match administration
backend/src/modules/admin/admin.matches.controller.ts - Match automation
backend/src/services/matchAutomation.service.ts - Channels and streams
backend/src/modules/channels/channel.controller.ts - Sports data providers
backend/src/modules/providers
Accounts and commerce
- Authentication
backend/src/modules/auth/auth.controller.ts - Payments
backend/src/modules/payments/payment.controller.ts - Subscriptions
backend/src/modules/subscriptions
Platform operations
- Advertising
backend/src/modules/advertisements - Analytics
backend/src/modules/analytics - Notifications
backend/src/services/notification.service.ts - Admin tools
backend/src/modules/admin - Realtime events
backend/src/core/socketManager.ts - PostgreSQL database
backend/src/core/prisma.ts
Other components
- Viewer
- Staff
- Cloudinary
- Email service
Connections 19
- Viewer → Web app: uses
- Web app → Watch experience: routes viewers
- Web app → Match browsing: routes viewers
- Match browsing → Match API: requests matches
- Match API → PostgreSQL database: queries
backend/src/controllers/matchController.ts - Staff → Match administration: manages matches
- Match administration → PostgreSQL database: updates records
backend/src/modules/admin/admin.matches.controller.ts - Match administration → Realtime events: emits updates
backend/src/modules/admin/admin.matches.controller.ts - Match administration → Notifications: notifies starts
backend/src/modules/admin/admin.matches.controller.ts - Authentication → PostgreSQL database: reads and writes
backend/src/modules/auth/auth.controller.ts - Authentication → Email service: sends email
backend/src/modules/auth/auth.controller.ts - Payments → PostgreSQL database: records payments
backend/src/modules/payments/payment.controller.ts - Advertising → Analytics: tracks engagement
- Channels and streams → PostgreSQL database: uses channel service
backend/src/modules/channels/channel.controller.ts - Channels and streams → Realtime events: emits updates
backend/src/modules/channels/channel.controller.ts - Notifications → PostgreSQL database: stores notifications
backend/src/services/notification.service.ts - Notifications → Realtime events: dispatches events
backend/src/services/notification.service.ts - Notifications → Email service: sends notifications
- Admin tools → Cloudinary: manages media