How pavankumar-p15/playscout_ooad works
PlayScout is a React frontend for discovering sports venues and players, booking facilities, organizing games, and coordinating through chat. The user journey starts in the routed application, uses shared session/data context, then branches into venue discovery, booking/payment, game participation, and account or admin tasks. The README also documents sports news and OAuth capabilities. Backend services and most page/component implementations were not included in the excerpts, so API relationships are shown only where source calls or README statements support them; absent backend paths are not inferred.
Main entry points: App.jsx Routes and layout · StoreContext.jsx Shared app state · Bookpop.jsx Booking and checkout · Upcoming.jsx Upcoming activity
Components 31
App shell
- React entry
frontend/src/main.jsx - Routes and layout
frontend/src/App.jsx - Shared app state
frontend/src/context/StoreContext.jsx - Context instance
frontend/src/context/storeContextInstance.js
Discovery
- Venue browsing
frontend/src/components/ExploreVenues/ExploreVenues.jsx - Venue details
frontend/src/components/Facility_info/Facility_info.jsx - Facility page
frontend/src/pages/Facility/Facility.jsx - Player discovery
frontend/src/pages/Meet/Meet.jsx - Player actions
frontend/src/components/PlayerObject/PlayerObject.jsx - Sports news
frontend/src/pages/News/News.jsx
Bookings and payments
- Booking and checkout
frontend/src/components/Bookpop/Bookpop.jsx - Booking page
frontend/src/pages/Booking/Booking.jsx - Upcoming activity
frontend/src/pages/Upcoming/Upcoming.jsx - Payment history
frontend/src/pages/PaymentHistory/PaymentHistory.jsx - Payment result
frontend/src/pages/PaymentSuccess/PaymentSuccess.jsx - Payment cancellation
frontend/src/pages/PaymentCancel/PaymentCancel.jsx
Games and community
- Game creation
frontend/src/components/CreateGame/CreateGame.jsx - Join requests
frontend/src/components/JoinPopup/JoinPopup.jsx - Participant chat
frontend/src/pages/Chat/Chat.jsx - Chat transport
Identity and administration
- Login and registration
frontend/src/components/LoginPopup/LoginPopup.jsx - OAuth callback
frontend/src/pages/OAuthSuccess/OAuthSuccess.jsx - Profile management
frontend/src/pages/Profile/Profile.jsx - Profile completion
frontend/src/pages/CompleteProfile/CompleteProfile.jsx - Venue administration
frontend/src/pages/FacilityManagement/FacilityManagement.jsx - Admin console
frontend/src/pages/Admin/Admin.jsx
Other components
- Sports enthusiast
- PlayScout API
- Payment provider
- GNews API
- Supabase PostgreSQL
Connections 48
- Sports enthusiast → React entry: opens app
frontend/src/main.jsx - React entry → Shared app state: provides state
frontend/src/main.jsx - React entry → Routes and layout: renders
frontend/src/main.jsx - Routes and layout → Booking page: routes to
frontend/src/App.jsx - Routes and layout → Facility page: routes to
frontend/src/App.jsx - Routes and layout → Player discovery: routes to
frontend/src/App.jsx - Routes and layout → Participant chat: routes to
frontend/src/App.jsx - Routes and layout → Sports news: routes to
frontend/src/App.jsx - Routes and layout → Upcoming activity: routes to
frontend/src/App.jsx - Routes and layout → Login and registration: shows
frontend/src/App.jsx - Routes and layout → Venue administration: routes to
frontend/src/App.jsx - Routes and layout → Admin console: routes to
frontend/src/App.jsx - Routes and layout → Profile management: routes to
frontend/src/App.jsx - Routes and layout → OAuth callback: routes to
frontend/src/App.jsx - Routes and layout → Profile completion: routes to
frontend/src/App.jsx - Routes and layout → Payment result: routes to
frontend/src/App.jsx - Routes and layout → Payment cancellation: routes to
frontend/src/App.jsx - Routes and layout → Payment history: routes to
frontend/src/App.jsx - Shared app state → Context instance: uses context
frontend/src/context/StoreContext.jsx - Shared app state → PlayScout API: fetches data
frontend/src/context/StoreContext.jsx - Facility page → Venue details: shows details
- Venue details → Booking and checkout: opens booking
frontend/src/components/Facility_info/Facility_info.jsx - Venue details → PlayScout API: loads venue data
- Player discovery → Player actions: renders players
- Player actions → Join requests: opens request
frontend/src/components/PlayerObject/PlayerObject.jsx - Player actions → PlayScout API: loads player data
- Sports news → GNews API: fetches news
README.md - Booking page → Venue browsing: offers venues
- Booking and checkout → PlayScout API: creates checkout
frontend/src/components/Bookpop/Bookpop.jsx - Booking and checkout → Payment provider: redirects for payment
frontend/src/components/Bookpop/Bookpop.jsx - Booking and checkout → PlayScout API: fallback booking
frontend/src/components/Bookpop/Bookpop.jsx - Upcoming activity → PlayScout API: reads bookings
frontend/src/pages/Upcoming/Upcoming.jsx - Upcoming activity → PlayScout API: cancels booking
frontend/src/pages/Upcoming/Upcoming.jsx - Upcoming activity → Shared app state: refreshes venues
frontend/src/pages/Upcoming/Upcoming.jsx - Payment history → PlayScout API: loads history
- Game creation → PlayScout API: creates game
frontend/src/components/CreateGame/CreateGame.jsx - Game creation → Shared app state: refreshes games
frontend/src/components/CreateGame/CreateGame.jsx - Join requests → PlayScout API: manages requests
- Participant chat → PlayScout API: loads messages
frontend/src/pages/Chat/Chat.jsx - Participant chat → Chat transport: connects realtime
frontend/src/pages/Chat/Chat.jsx - Chat transport → PlayScout API: uses websocket endpoint
- Login and registration → PlayScout API: authenticates
frontend/src/components/LoginPopup/LoginPopup.jsx - OAuth callback → Context instance: sets session
frontend/src/pages/OAuthSuccess/OAuthSuccess.jsx - Profile management → PlayScout API: reads and updates
frontend/src/pages/Profile/Profile.jsx - Profile completion → PlayScout API: updates profile
- Venue administration → PlayScout API: manages venues
frontend/src/pages/FacilityManagement/FacilityManagement.jsx - Admin console → PlayScout API: manages platform
frontend/src/pages/Admin/Admin.jsx - PlayScout API → Supabase PostgreSQL: persists platform data
README.md