How santiago-veloza/codesquest works
CODEQUEST is an educational Python-learning platform: students create accounts, explore worlds and challenges, run code locally, and submit attempts for server-side validation and rewards. The documented product also includes a Godot labyrinth, progress tracking, achievements, and account/privacy flows. The tree contains no Godot or content data directories, and most backend views and services were not sampled; those relationships are shown only where documented, or omitted when their wiring cannot be established.
Main entry points: router.tsx Routes and guards · cliente.ts HTTP client · useEjecucion.ts Attempt workflow · servicios.py Progress services
Components 24
Web client
- Application shell
frontend/src/main.tsx - Routes and guards
frontend/src/app/router.tsx - Session state
frontend/src/estado/sesion.ts - HTTP client
frontend/src/api/cliente.ts - Account screens
frontend/src/paginas/Registro.tsx
Learning experience
- World map
frontend/src/paginas/Mapa.tsx - World labyrinth
frontend/src/paginas/laberinto/MundoLaberinto.tsx - Challenge screen
frontend/src/paginas/desafio/Desafio.tsx - Attempt workflow
frontend/src/paginas/desafio/useEjecucion.ts - Achievements
frontend/src/paginas/Logros.tsx - Godot game
Backend API
- API routes
backend/config/urls.py - Progress endpoints
backend/apps/progreso/views.py - Gamification endpoints
backend/apps/gamificacion/views.py - PostgreSQL
Game domain
- World and challenge data
backend/apps/contenido/models.py - Content loader
backend/apps/contenido/carga.py - Labyrinth generation
backend/apps/contenido/laberinto.py - Accounts and security
backend/apps/usuarios/servicios.py - Progress services
backend/apps/progreso/servicios.py - Rewards and achievements
backend/apps/gamificacion/servicios.py
Code runtime
- Challenge evaluator
frontend/src/motor/evaluador.ts - Python runner
frontend/src/motor/EjecutorPython.ts
Other components
- Student
Connections 26
- Student → Application shell: uses
- Application shell → Routes and guards: mounts
frontend/src/main.tsx - Routes and guards → Account screens: routes to
frontend/src/app/router.tsx - Routes and guards → World map: routes to
frontend/src/app/router.tsx - Routes and guards → World labyrinth: routes to
frontend/src/app/router.tsx - Routes and guards → Challenge screen: routes to
frontend/src/app/router.tsx - Account screens → Session state: starts session
frontend/src/paginas/Registro.tsx - Session state → HTTP client: provides token
frontend/src/api/cliente.ts - World map → HTTP client: requests worlds
- Challenge screen → Attempt workflow: runs attempt
- Attempt workflow → Challenge evaluator: evaluates code
frontend/src/paginas/desafio/useEjecucion.ts - Attempt workflow → Python runner: executes code
frontend/src/paginas/desafio/useEjecucion.ts - Attempt workflow → HTTP client: registers attempt
- HTTP client → API routes: calls API
- API routes → Progress endpoints: routes requests
- Progress endpoints → Progress services: handles progress
- Progress services → PostgreSQL: persists progress
- Progress services → Rewards and achievements: awards rewards
- Gamification endpoints → Rewards and achievements: serves achievements
- Achievements → HTTP client: loads achievements
- Content loader → World and challenge data: loads records
backend/apps/contenido/carga.py - Content loader → Labyrinth generation: builds labyrinths
backend/apps/contenido/carga.py - World and challenge data → PostgreSQL: stores content
- World labyrinth → Godot game: embeds game
- Progress services → World and challenge data: checks challenges
- Accounts and security → PostgreSQL: stores accounts