How petender/skills-getting-started-with-github-copilot works
Mergington High School’s app lets students browse extracurricular activities and sign up. The browser UI fetches the activity list from the FastAPI service, displays schedules and available places, and submits signups; the service validates activity names and updates an in-memory participant list. The graph separates the browser experience, API, and state. The HTML and CSS were not sampled, so their internal wiring is not asserted; the documented redirect and sampled JavaScript establish the shown route relationships.
Main entry points: app.js UI controller · app.py Activities endpoint · index.html Activity page
Components 7
Browser experience
- Activity page
src/static/index.html - UI controller
src/static/app.js - Page styles
src/static/styles.css
Activity API
- Activities endpoint
src/app.py - Signup endpoint
src/app.py
Activity state
- Activity records
src/app.py
Other components
- Student
Connections 5
- Student → Activity page: opens
- UI controller → Activities endpoint: fetches list
src/static/app.js - Activities endpoint → Activity records: reads
src/app.py - UI controller → Signup endpoint: submits signup
src/static/app.js - Signup endpoint → Activity records: adds participant
src/app.py