How pdaw-proyectos/pdaw-2026-proyfinal-g08 works
Orsai combines football scores, schedules, league standings and team details with a community platform for registered fans. The football workflow is assembled at startup: repositories and services are wired into the HTTP app, whose routes expose league, match and team operations; background synchronization loads football data from TheSportsDB. A separate community app handles accounts and, per the README, forum, profiles, store and administration. The browser has corresponding football and community views. Community internals and several routes were not sampled, so those capabilities are shown without speculative internal call chains.
Main entry points: server.js Server startup · app.js HTTP app · main.js Browser entry · auth.routes.js Auth routes
Components 32
Runtime and HTTP
- Server startup
src/server.js - HTTP app
src/app.js - Auth routes
src/routes/auth.routes.js - Auth controller
src/controllers/auth.controller.js - Session middleware
src/middlewares/auth.middleware.js - League controller
src/controllers/ligas.controller.js - Match controller
src/controllers/partidos.controller.js - Team controller
src/controllers/equipos.controller.js
Football data
- League service
src/services/ligas.service.js - Match service
src/services/partidos.service.js - Team service
src/services/equipos.service.js - League repository
src/repositories/LigasRepository.js - Match repository
src/repositories/PartidosRepository.js - Team repository
src/repositories/EquiposRepository.js - Data synchronization
src/services/sincronizacion.service.js - Football API client
src/services/apiFutbol.service.js
Community platform
- Community app
src/js/app.js - User store
src/js/Usuarios/users.js - Community repository
src/js/Comunidad/RepositorioComunidad.js - Admin settings
src/js/Configuracion/RepositorioConfiguracion.js
Browser experience
- Browser entry
public/js/main.js - Football views
public/js/partidos.js - Team view
public/js/equipo.js - League view
public/js/ligas.js - Search view
public/js/buscador.js - Account view
public/js/auth.js - Community views
public/js/foro.js - Store view
public/js/tienda.js - Profile view
public/js/perfil.js - Admin view
public/js/admin.js
Other components
- Fan
- TheSportsDB
Connections 27
- Server startup → HTTP app: creates
src/server.js - Server startup → League service: wires
src/server.js - Server startup → Match service: wires
src/server.js - Server startup → Team service: wires
src/server.js - Server startup → League repository: creates
src/server.js - Server startup → Match repository: creates
src/server.js - Server startup → Team repository: creates
src/server.js - Server startup → Football API client: creates
src/server.js - Server startup → Data synchronization: starts sync
src/server.js - Server startup → Community app: creates
src/server.js - Server startup → User store: creates
src/server.js - Server startup → Community repository: creates
src/server.js - Server startup → Admin settings: creates
src/server.js - HTTP app → Auth routes: mounts
src/app.js - HTTP app → League controller: routes via
- HTTP app → Match controller: routes via
- HTTP app → Team controller: routes via
- HTTP app → Community app: mounts
src/app.js - Auth routes → Auth controller: dispatches
src/routes/auth.routes.js - Auth routes → Session middleware: guards
src/routes/auth.routes.js - Browser entry → Search view: imports
public/js/main.js - Browser entry → Account view: imports
public/js/main.js - Browser entry → League view: imports
public/js/main.js - Browser entry → Team view: imports
public/js/main.js - Browser entry → Football views: imports
- Fan → Browser entry: uses
- Football API client → TheSportsDB: requests data