How alhaadee/fantasy_league_project works
Bright Football League is a fantasy-football web app: users create accounts, choose a budget-limited player team, and follow player performance and league scores alongside real fixtures and statistics. The React home container coordinates screen data and REST calls to a Spring Boot API; the README identifies PostgreSQL persistence and Fantasy Premier League data as the data source. Backend implementation details were not sampled, so internal service and repository wiring is not drawn.
Main entry points: HomeContainer.js App coordinator · auth.service.js Auth client · Team.js Fantasy team · Login.js Account screens
Components 21
React Web App
- App coordinator
frontend/fantasy-league/src/containers/HomeContainer.js - Fixtures view
frontend/fantasy-league/src/components/Fixtures.jsx - Player stats
frontend/fantasy-league/src/components/Stats.js - Fantasy team
frontend/fantasy-league/src/components/Team.js - Player search
frontend/fantasy-league/src/components/TeamSearch.js - Leaderboard
frontend/fantasy-league/src/components/LeaderBoard.js - Account screens
frontend/fantasy-league/src/components/Login.js - Auth client
frontend/fantasy-league/src/services/auth.service.js
Spring API
- REST API
backend/fantasy-league-api/src/main/java/com/example/fullstackproject/fantasyleagueapi/FantasyLeagueApiApplication.java - Football data routes
backend/fantasy-league-api/src/main/java/com/example/fullstackproject/fantasyleagueapi/controllers/DataController.java - Player routes
backend/fantasy-league-api/src/main/java/com/example/fullstackproject/fantasyleagueapi/controllers/PlayerController.java - User routes
backend/fantasy-league-api/src/main/java/com/example/fullstackproject/fantasyleagueapi/controllers/UserController.java
Authentication
- Auth routes
backend/fantasy-league-api/src/main/java/com/example/fullstackproject/fantasyleagueapi/controllers/AuthController.java - JWT security
backend/fantasy-league-api/src/main/java/com/example/fullstackproject/fantasyleagueapi/springSecurityJwt
Fantasy Domain
- Player services
backend/fantasy-league-api/src/main/java/com/example/fullstackproject/fantasyleagueapi/services/PlayerService.java - User services
backend/fantasy-league-api/src/main/java/com/example/fullstackproject/fantasyleagueapi/services/UserService.java
Data Sources
- Player records
backend/fantasy-league-api/src/main/java/com/example/fullstackproject/fantasyleagueapi/repositories/PlayerRepository.java - User records
backend/fantasy-league-api/src/main/java/com/example/fullstackproject/fantasyleagueapi/repositories/UserRepository.java - PostgreSQL
Other components
- Football fan
- Fantasy Premier League API
Connections 16
- Football fan → App coordinator: uses
- App coordinator → Fixtures view: routes to
- App coordinator → Player stats: routes to
- App coordinator → Fantasy team: routes to
- App coordinator → Leaderboard: routes to
- App coordinator → Account screens: routes to
- App coordinator → Football data routes: fetches fixtures and data
- App coordinator → Player routes: fetches and changes players
- App coordinator → User routes: fetches and updates users
- Fantasy team → Player search: offers search
- Account screens → Auth client: submits credentials
- Auth client → Auth routes: posts login
- Auth client → User routes: posts signup
- Football data routes → Fantasy Premier League API: sources football data
- Player records → PostgreSQL: persists
- User records → PostgreSQL: persists