How github-samples/pets-workshop works
This repository combines guided GitHub workshops with a fictional dog-shelter website used as their hands-on project. A visitor browses dog listings and details through an Astro client backed by a Flask API and SQLite/SQLAlchemy models. The workshop materials cover Copilot, day-to-day GitHub development processes, and Actions-based CI/CD. Page and component internals were not sampled, so client-to-API links reflect the documented frontend/backend architecture rather than inspected call sites.
Main entry points: app.py Dog API · index.astro Dog listings · [id].astro Dog details · Layout.astro Shared layout
Components 18
Workshop curricula
- One-hour Copilot
content/1-hour - Full-day GitHub
content/full-day - Actions CI/CD
content/github-actions - Workshop entry guide
content/README.md
Astro website
- Dog listings
app/client/src/pages/index.astro - Dog details
app/client/src/pages/dog/[id].astro - About page
app/client/src/pages/about.astro - Listing component
app/client/src/components/DogList.astro - Details component
app/client/src/components/DogDetails.astro - Shared layout
app/client/src/layouts/Layout.astro
Flask API
- Dog API
app/server/app.py
Shelter data
- Dog model
app/server/models/dog.py - Breed model
app/server/models/breed.py - Model validation
app/server/models/base.py - Database setup
app/server/models/__init__.py - Shelter database
app/server/dogshelter.db
Other components
- Workshop learner
- Shelter visitor
Connections 20
- Workshop learner → Workshop entry guide: opens
- Workshop learner → One-hour Copilot: follows
- Workshop learner → Full-day GitHub: follows
- Workshop learner → Actions CI/CD: follows
- Shelter visitor → Dog listings: browses
- Shelter visitor → Dog details: views
- Shelter visitor → About page: visits
- Dog listings → Listing component: renders
- Dog details → Details component: renders
- Dog listings → Shared layout: uses
- Dog details → Shared layout: uses
- About page → Shared layout: uses
- Dog listings → Dog API: requests listings
- Dog details → Dog API: requests dog
- Dog API → Dog model: queries
- Dog API → Breed model: joins breed
- Dog API → Shelter database: reads
- Database setup → Shelter database: creates tables
- Dog model → Model validation: inherits
- Breed model → Model validation: inherits