How mstrat2/senior_is_tennis_app works
This is a React tennis-spectator learning site whose implemented workflow loads the home page, polls for live match data, and displays a scorecard. The polling hook requests the matches endpoint; the serverless handler fetches live data from Live Tennis API. The README describes only a generic React/Vite template, so broader lesson content is not established. About and Watch Live are placeholders; scoring and etiquette links exist, but their destination pages are not implemented in the sampled routes. Supabase is configured but no sampled runtime code uses it.
Main entry points: App.jsx App Shell and Routes · Home.jsx Home Landing Page · matches.js Matches Endpoint · useLiveMatch.js Live Match Poller
Components 9
Application UI
- React Bootstrap
src/main.jsx - App Shell and Routes
src/App.jsx - Home Landing Page
src/pages/Home.jsx - About Placeholder
src/pages/About.jsx
Live Match Display
- Live Match Poller
src/hooks/useLiveMatch.js - Scorecard
src/components/ScoreCard.jsx
Live Data
- Matches Endpoint
api/matches.js
Other components
- Spectator
- Live Tennis API
Connections 9
- Spectator → React Bootstrap: opens site
- React Bootstrap → App Shell and Routes: renders
src/main.jsx - App Shell and Routes → Home Landing Page: routes to
src/App.jsx - App Shell and Routes → About Placeholder: routes to
src/App.jsx - Home Landing Page → Live Match Poller: reads match state
src/pages/Home.jsx - Home Landing Page → Scorecard: renders
src/pages/Home.jsx - Live Match Poller → Matches Endpoint: requests
src/hooks/useLiveMatch.js - Matches Endpoint → Live Tennis API: fetches live matches
api/matches.js - Matches Endpoint → Live Match Poller: returns JSON
src/hooks/useLiveMatch.js