How nbarr1/tennisscoring works
TennisScoring is a multi-platform tennis league product: web and mobile clients support onboarding, divisions, matches, scoring, rankings, messaging, and administration, with Firebase providing backend operations and Firestore persistence. Shared domain code supplies scoring, ranking, and scheduling behavior. The README documents these capabilities and the source index confirms selected calls and exports; many client screens and backend modules were not sampled, so uncertain wiring is omitted or marked optional.
Main entry points: matchFunctions.ts Match lifecycle · divisionFunctions.ts Division management · app Mobile application · src Firebase client
Components 20
Web and mobile
- Web application
apps/web/app - Mobile application
apps/mobile/app - League administration
apps/web/app/admin/page.tsx
League domain
- Division management
firebase/src/divisions/divisionFunctions.ts - Match lifecycle
firebase/src/matches/matchFunctions.ts - Doubles matches
firebase/src/matches/doublesFunctions.ts - Round-robin schedules
firebase/src/matches/scheduleFunctions.ts
Firebase backend
- Authentication
firebase/src/auth - Firebase client
packages/firebase-client/src - Firestore
- Messaging and moderation
firebase/src/messaging - Push notifications
firebase/src/notifications/push.ts - Match reports
firebase/src/reports/generateReport.ts - Feedback submission
firebase/src/feedback/submitFeedback.ts
Shared packages
- Tennis scoring
packages/shared/src/scoring/scoreEngine.ts - Rankings
packages/shared/src/scoring/rankingEngine.ts - Schedule generation
packages/shared/src/scheduling/roundRobin.ts
Wearable scoring
- Wear OS scoring
apps/mobile/android/wear/src/main/java/com/tennisleague/watch/MainActivity.kt - Apple Watch scoring
apps/mobile/ios/TennisScoringWatch/ScoreView.swift
Other components
- League player
Connections 20
- League player → Web application: uses
README.md - League player → Mobile application: uses
README.md - Web application → Firebase client: uses
- Mobile application → Firebase client: uses
- Firebase client → Firestore: reads and writes
README.md - Match lifecycle → Firestore: reads and writes
firebase/src/matches/matchFunctions.ts - Division management → Firestore: reads and writes
firebase/src/divisions/divisionFunctions.ts - Division management → Authentication: checks verified email
firebase/src/divisions/divisionFunctions.ts - Match lifecycle → Tennis scoring: applies points
firebase/src/matches/matchFunctions.ts - Match lifecycle → Rankings: computes standings
firebase/src/matches/matchFunctions.ts - Division management → Match lifecycle: recalculates rankings
firebase/src/divisions/divisionFunctions.ts - Doubles matches → Match lifecycle: shares match operations
- Round-robin schedules → Schedule generation: publishes schedules
- Match lifecycle → Push notifications: sends notifications
firebase/src/matches/matchFunctions.ts - Messaging and moderation → Firestore: stores messages
README.md - Match reports → Firestore: reads match data
README.md - Feedback submission → Firestore: submits feedback
- League administration → Division management: manages divisions
- Wear OS scoring → Mobile application: companion scoring
README.md - Apple Watch scoring → Mobile application: companion scoring
README.md