How danyaelavungshenmang999-debug/sepak-takraw works
Sepak Takraw Data Mining & Analytics is a React/FastAPI application for exploring verified 2024 ISTAF World Cup records and team analytics. Users enter through tournament pages, which request data through the API client and backend routes; analytics includes clustering, PCA, model evaluation, and match-winner prediction. Backend routes read relational records, while mining modules also use configured CSV data. The source index and excerpts establish key calls and registrations; frontend-to-backend HTTP links are shown as unverified because the wiring is not explicit in the excerpts.
Main entry points: analytics.py Analytics routes · main.py FastAPI application · App.jsx Route application · database.py SQL database
Components 21
Web experience
- Route application
frontend/src/App.jsx - Tournament home
frontend/src/pages/Home.jsx - Analytics page
frontend/src/pages/Analytics.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Browse pages
frontend/src/pages - API client
frontend/src/services/api.js
API and domain
- FastAPI application
backend/app/main.py - Match routes
backend/app/routes/matches.py - Tournament routes
backend/app/routes - Analytics routes
backend/app/routes/analytics.py - Source routes
backend/app/routes/sources.py
Tournament records
- SQL database
backend/app/database.py - Tournament records
backend/app/models - Source service
backend/app/services/source_service.py
Data mining
- Feature engineering
backend/app/services/feature_engineering.py - Team clustering
backend/app/mining/clustering.py - PCA analysis
backend/app/mining/pca.py - Model evaluation
backend/app/mining/classification.py - Match prediction
backend/app/mining/prediction.py - Evaluation metrics
backend/app/mining/evaluation.py
Other components
- Tournament visitor
Connections 27
- Tournament visitor → Route application: opens
frontend/src/App.jsx - Route application → Tournament home: routes to
frontend/src/App.jsx - Route application → Analytics page: routes to
frontend/src/App.jsx - Route application → Dashboard: routes to
frontend/src/App.jsx - Route application → Browse pages: routes to
frontend/src/App.jsx - Tournament home → API client: requests data
frontend/src/pages/Home.jsx - Dashboard → API client: requests data
frontend/src/pages/Dashboard.jsx - Analytics page → API client: requests analytics
- API client → FastAPI application: calls HTTP API
- FastAPI application → Match routes: registers
backend/app/main.py - FastAPI application → Tournament routes: registers
backend/app/main.py - FastAPI application → Analytics routes: registers
backend/app/main.py - FastAPI application → Source routes: registers
backend/app/main.py - FastAPI application → SQL database: initializes
backend/app/main.py - Match routes → SQL database: queries
backend/app/routes/matches.py - Match routes → Tournament records: reads matches, teams
backend/app/routes/matches.py - Tournament routes → SQL database: queries
backend/app/routes/matches.py - Analytics routes → SQL database: loads records
backend/app/routes/analytics.py - Source routes → Source service: uses
- SQL database → Tournament records: registers tables
backend/app/database.py - Analytics routes → Team clustering: calls
backend/app/routes/analytics.py - Analytics routes → PCA analysis: calls
backend/app/routes/analytics.py - Analytics routes → Model evaluation: calls
backend/app/routes/analytics.py - Analytics routes → Match prediction: calls
backend/app/routes/analytics.py - Analytics routes → Evaluation metrics: calls
- Feature engineering → Team clustering: prepares features
- Feature engineering → Match prediction: builds match features