How lissovkevin/football-stats-explorer works
Football Stats Explorer is a React frontend for exploring football match data through a GraphQL API. Visitors browse paginated, league-filtered matches, open match details, and view three interactive statistics charts; signed-in users can create, edit, and delete matches. Google OAuth supplies the client-side sign-in flow, while match operations send GraphQL requests directly to the API. The main runtime flow is routed by App; Login and one chart implementation were not excerpted, so their internal API relationships are omitted where unverified.
Main entry points: App.jsx Route Dispatcher · Home.jsx Statistics Home · Dashboard.jsx Match Browser · MatchDetail.jsx Match Details
Components 13
App Routing
- Route Dispatcher
src/App.jsx - Navigation Bar
src/components/Navbar.jsx
Match Exploration
- Match Browser
src/pages/Dashboard.jsx - Match Details
src/pages/MatchDetail.jsx
Statistics Charts
- Statistics Home
src/pages/Home.jsx - Goals per League
src/components/charts/GoalsPerLeague.jsx - Team Wins Chart
src/components/charts/WinsPerTeam.jsx - Scored-Conceded Chart
src/components/charts/GoalsScored.jsx
Authentication
- Google Sign-in
src/pages/Login.jsx - Session Helpers
src/utils/auth.js
Match Management
- Create Match Form
src/pages/CreateMatch.jsx
Other components
- Visitor
- Football GraphQL API
Connections 20
- Visitor → Route Dispatcher: opens
src/App.jsx - Route Dispatcher → Navigation Bar: renders
src/App.jsx - Route Dispatcher → Statistics Home: routes to
src/App.jsx - Route Dispatcher → Match Browser: routes to
src/App.jsx - Route Dispatcher → Google Sign-in: routes to
src/App.jsx - Route Dispatcher → Match Details: routes to
src/App.jsx - Route Dispatcher → Create Match Form: routes to
src/App.jsx - Statistics Home → Goals per League: renders
src/pages/Home.jsx - Statistics Home → Team Wins Chart: renders
src/pages/Home.jsx - Statistics Home → Scored-Conceded Chart: renders
src/pages/Home.jsx - Navigation Bar → Session Helpers: checks session
src/components/Navbar.jsx - Match Details → Session Helpers: checks session
src/pages/MatchDetail.jsx - Match Browser → Football GraphQL API: queries matches
src/pages/Dashboard.jsx - Match Browser → Football GraphQL API: queries leagues
src/pages/Dashboard.jsx - Match Details → Football GraphQL API: queries and mutates
src/pages/MatchDetail.jsx - Create Match Form → Football GraphQL API: queries and creates
src/pages/CreateMatch.jsx - Goals per League → Football GraphQL API: queries matches
src/components/charts/GoalsPerLeague.jsx - Team Wins Chart → Football GraphQL API: queries matches
src/components/charts/WinsPerTeam.jsx - Scored-Conceded Chart → Football GraphQL API: queries matches
src/components/charts/GoalsScored.jsx - Google Sign-in → Football GraphQL API: exchanges token