How mugucho/dtw-analisys works
Deserve To Win is a football analytics and betting-support application. Users choose a tournament, inspect fixtures, standings, historical performance and live odds, then request a match analysis and Kelly stake; a separate finance workflow runs and reviews a historical backtest. The frontend calls a FastAPI backend, whose routes delegate to analytics and finance services. The sampled code supports these API and file-data flows; unsampled scraper and collector wiring is not inferred.
Main entry points: App.jsx App state and API client · main.py HTTP API routes · ml_engine.py Match and tournament analytics · finance.py Kelly and backtest logic
Components 17
Web interface
- App state and API client
frontend/src/App.jsx - Tournament navigation
frontend/src/layout/Navbar.jsx - Standings and history
frontend/src/features/dashboard/components/StandingsView.jsx - Match stake analysis
frontend/src/features/betting/components/KellyCalculator.jsx - Backtest report
frontend/src/features/finance/components/FinanceDashboard.jsx - Live odds explorer
frontend/src/features/odds/components/OddsGrid.jsx - Fixture carousel
frontend/src/features/dashboard/components/MatchCarousel.jsx
API and services
- HTTP API routes
backend/main.py - Match and tournament analytics
backend/services/ml_engine.py - Kelly and backtest logic
backend/services/finance.py - Data loading
backend/services/data_loader.py - ESPN scraper
backend/services/espn_scraper.py - Stats API collector
backend/data/repositories/api_collector.py - Stats API repository
backend/data/repositories/stats_api_repository.py - API request and response schemas
backend/api/schemas/schemas.py
Tournament data
- Tournament CSV and JSON files
backend/data
Other components
- User
Connections 13
- User → App state and API client: uses
- App state and API client → Tournament navigation: renders
- App state and API client → Fixture carousel: renders
- App state and API client → Standings and history: renders
- App state and API client → Match stake analysis: renders
- App state and API client → Backtest report: renders
- App state and API client → Live odds explorer: renders
- App state and API client → HTTP API routes: requests data
- HTTP API routes → Match and tournament analytics: calls analytics
- HTTP API routes → Kelly and backtest logic: calls finance
- HTTP API routes → API request and response schemas: validates with
- Match and tournament analytics → Tournament CSV and JSON files: reads and writes
- Kelly and backtest logic → Tournament CSV and JSON files: reads and writes