How gandhi-balakrishnan/learningday-repo1 works
This is a small FastAPI application for viewing and managing student sign-ups for school activities. A student uses the browser interface to view activities, sign up, or remove a participant; the JavaScript client sends requests to the API, which reads or updates an in-memory activity map. The API also redirects the root route to the static page. The HTML page’s contents were not sampled, so its client-side wiring is not shown.
Main entry points: app.py Activity API · app.js Activity interface · index.html Activity page
Components 7
Browser client
- Activity interface
src/static/app.js - Activity page
src/static/index.html
Activity API
- Activity API
src/app.py - Activity listing
src/app.py - Sign-up management
src/app.py
Activity state
- In-memory activities
src/app.py
Other components
- Student
Connections 7
- Student → Activity interface: uses
- Activity interface → Activity API: requests
src/static/app.js - Activity API → Activity page: redirects to
src/app.py - Activity API → Activity listing: routes listing
src/app.py - Activity API → Sign-up management: routes sign-ups
src/app.py - Activity listing → In-memory activities: reads
src/app.py - Sign-up management → In-memory activities: updates
src/app.py