How roberto2213/imparadeputato works
ImparaDeputato is a web app for learning Italian deputies, parliamentary groups, and seat locations. A user opens the training interface, which fetches deputy, group, and committee data from Flask; they can then play quiz modes, explore the hemicycle, or search deputies. A data-building script prepares the JSON cache consumed by the app, while GodMode supports protected data edits. The README also documents audio feedback and PWA/offline support. Some routes and template wiring were not excerpted, so those connections are omitted unless documented.
Main entry points: training_logic.js Training UI · training_app.py Flask routes · emiciclo_moderno.html Hemicycle map · service-worker.js Service worker
Components 16
Learning experience
- Training UI
static/training_logic.js - Quiz modes
static/training_logic.js - Seat quiz
static/emiciclo_quiz.html - Deputy search
static/training_logic.js - Hemicycle map
templates/emiciclo_moderno.html - Audio feedback
static/audio - Alternate game logic
training_logic.js
Web server
- Flask routes
training_app.py - GodMode editing
training_app.py
Deputy data
- Cache builder
build_data_cache.py - Deputy cache
data_cache.json - Seat positions
static/seggi.json - Hemicycle assets
static/emiciclo.html
Offline support
- Service worker
service-worker.js - PWA manifest
static/manifest.json
Other components
- Learner
Connections 16
- Learner → Training UI: uses
README.md - Training UI → Flask routes: fetches data
static/training_logic.js - Training UI → Seat positions: fetches positions
static/training_logic.js - Training UI → Quiz modes: starts quiz
static/training_logic.js - Training UI → Seat quiz: loads seat quiz
static/training_logic.js - Training UI → Deputy search: filters deputies
static/training_logic.js - Training UI → Audio feedback: plays feedback
README.md - Learner → Hemicycle map: views seats
README.md - Training UI → GodMode editing: requests admin actions
static/training_logic.js - Flask routes → Deputy cache: reads and writes
training_app.py - Cache builder → Deputy cache: builds cache
build_data_cache.py - Flask routes → Seat positions: syncs edits
training_app.py - Hemicycle map → Hemicycle assets: renders layout
README.md - Training UI → Service worker: registers worker
static/training_logic.js - Service worker → PWA manifest: caches app assets
service-worker.js - Learner → Alternate game logic: uses alternate interface