Repository navigation
Deployment and Hosting
The organization publishes two different GitHub Pages products: an interactive frontend demo and a static REST API reference. Both can be served without a running Django backend.
| Published site | URL | Source / artifact owner |
|---|---|---|
| Interactive frontend demo | younganddigitallearning.github.io | Source: ydl-front; built assets: younganddigitallearning.github.io
|
| Archived Swagger UI | younganddigitallearning.github.io/ydl-api/ | Source and static site files: ydl-api/api-docs
|
| OpenAPI JSON snapshot | Download openapi.json | Exported from the locally running Django application |
flowchart LR
Source["ydl-front feature/local-demo"] --> Docker["Local Webpack 3 build"]
Docker --> Output["ydl-front/docs static assets"]
Output --> Repo["younganddigitallearning.github.io repository"]
Repo --> Actions["GitHub Pages deployment workflow"]
Actions --> Website["Public interactive demo"]
The Pages-targeted build uses YDL_BUILD_TARGET=pages and the public asset base path /. The build switches API calls to an in-browser mock adapter. A static build must be tested with Django stopped before publishing.
The main integration repo contains the build-pages.sh helper. Generated files are copied into the Pages repository and deployed by its workflow; the source implementation is maintained in ydl-front, not forked.
flowchart LR
Django["Local Django server"] --> Export["export_openapi.py"]
Export --> JSON["api-docs/openapi.json"]
JSON --> Prepare["prepare_api_docs.sh"]
Static["Committed Swagger UI JS + CSS"] --> Prepare
Prepare --> GH["GitHub Pages workflow"]
GH --> Docs["/ydl-api/ reference"]
The API docs job publishes prebuilt index.html, app.js, openapi.json and versioned vendor/ files. It needs no npm/pnpm installation in CI. The documented server hostname is deliberately non-operational (api.example.invalid), and Swagger's Try it out actions are disabled.
- Frontend demo: landing page opens, Student and Teacher modes work, and no requests are sent to
api.ydlearning.comorlocalhost:8000. - Swagger page: endpoint groups render from
openapi.json, static JS/CSS load, and no live submission controls are available. - The GitHub Actions workflow can report deployment status; HTTP uptime badges alone do not verify application logic.
GitHub Pages hosts static HTML, CSS, JavaScript, fonts and example files. It does not run Python/Django, MariaDB or the old Gunicorn deployment. Do not expose the historical backend to the public internet as a shortcut.
Young & Digital Learning · Interactive demo · Archived API reference · Source repositories · Fictional demonstration data · Academic portfolio