How 01-edu/public works
Purpose and Entry Points
This is the public curriculum repository for the 01 Edu system, not a single deployable application. Its primary artifacts are exercise specifications, audit criteria, fixtures, and validation harnesses. Start from README.md, browse the curriculum root at subjects/README.md, and consume individual exercise contracts through subjects/<exercise>/README.md.
Curriculum Content Layer
subjects/ is the canonical content corpus, organized both as standalone exercises and discipline tracks. Each subject directory defines the learner-facing requirements; larger projects commonly add audit/ material for peer evaluation.
• subjects/
• subjects/ai/README.md
• subjects/blockchain/README.md
Key tracks include programming fundamentals (primarily Go/Rust), JavaScript/DOM, shell/DevOps, AI/data, blockchain, cybersecurity, gaming, mobile, Java, and UX. The hierarchy is content-oriented rather than code-module-oriented; paths are stable identifiers used by documentation, tests, and external course platforms.
Assessment and Audit Boundary
Many project-level subjects include explicit audit documents, separating implementation requirements from review/scoring procedures. This supports human peer review rather than embedding all validation in executable tests.
• subjects/forum/README.md
• subjects/forum/audit/README.md
• subjects/ai/classification/audit/README.md
Audit extensions appear as nested curriculum stages where projects grow capabilities (for example authentication, security, or advanced features), each with its own specification and audit materials.
Automated JavaScript and DOM Validation
Executable JS test suites validate a substantial set of JavaScript and DOM exercises. Test files correspond to subject names; JSON files supply exercise-specific expected inputs/metadata, while ES modules cover DOM-oriented work.
• js/tests/test.mjs
• js/tests/package.json
• js/tests/action-reaction-dom_test.mjs
The runtime boundary is Node.js, containerized for reproducible execution. Tests consume learner implementations externally or in a configured workspace; this repository primarily supplies the harness and test definitions rather than learner solutions.
Shell/DevOps Validation
Shell exercise validation is a separate Dockerized harness with fixtures and reference solutions. Tests target command-line behavior, filesystem structures, permissions, process handling, and output contracts.
• sh/tests/entrypoint.sh
• sh/tests/Dockerfile
• sh/tests/solutions/
sh/tests/ provides controlled input trees and expected implementations; subjects/devops/ provides the associated learner specifications. This is a strong boundary between pedagogical content and executable evaluation infrastructure.
DOM Exercise Harness
A dedicated DOM test package predates or complements the ESM JS tests. It supplies a Node-based test runner, exercise tests, and a container entrypoint.
• dom/package.json
• dom/test.js
• dom/Dockerfile
DOM subject specifications often pair static HTML/CSS/data assets with behavior requirements, e.g. subjects/get-them-all-dom/README.md and subjects/get-them-all-dom/get-them-all.html.
Environment, Delivery, and External Integrations
Ubuntu workstation/image provisioning is scripted under sh/debian/ubuntu/, including session hooks, udev rules, account/session reset tools, and a small Go formatter utility.
• sh/debian/ubuntu/configure.sh
• sh/debian/ubuntu/setup.sh
• sh/debian/ubuntu/system/usr/local/src/format/main.go
GitHub Actions build and sanitize container images and run repository compliance checks. Docker is therefore central infrastructure; GitHub is the primary delivery/CI service. Individual curriculum subjects may require external ecosystems—AWS/Terraform, Docker/Kubernetes, Firebase, GraphQL/SQL, blockchain wallets/nodes, or mobile/web APIs—but these are exercise-specific contracts, not repository-wide runtime dependencies.
Main entry points: subjects/README.md Curriculum Root · entrypoint.sh Shell Harness · get-them-all-dom/README.md DOM Exercise Spec · test.js Legacy DOM Runner
Components 23
Curriculum Content
Canonical exercise specifications and tracks.
- Repository Guide · Public curriculum entry point.
README.md - Curriculum Root · Stable hierarchy of exercise contracts.
subjects/README.md - AI Track
subjects/ai - Blockchain Track
subjects/blockchain/README.md - Forum Specification
subjects/forum/README.md - DevOps Subjects · Learner specifications for shell and DevOps exercises.
subjects/devops - DOM Exercise Spec · Pairs behavior requirements with static exercise assets.
subjects/get-them-all-dom/README.md - DOM Exercise Asset
subjects/get-them-all-dom/get-them-all.html
Audit Material
Human peer-review and scoring contracts.
- Forum Audit
subjects/forum/audit/README.md - Classification Audit · Audit stage for an AI project.
subjects/ai/classification/audit/README.md
Validation Harnesses
Containerized automated exercise validation.
- JS Test Runner · Runs JavaScript and DOM exercise tests.
js/tests/test.mjs - JS Test Package
js/tests/package.json - DOM Test Suite · Exercise-specific DOM validation.
js/tests/action-reaction-dom_test.mjs - Shell Harness · Validates command-line behavior and filesystem contracts.
sh/tests/entrypoint.sh - Shell Test Image
sh/tests/Dockerfile - Reference Solutions · Controlled expected implementations and inputs.
sh/tests/solutions - Legacy DOM Runner · Dedicated DOM test package runner.
dom/test.js - DOM Test Package
dom/package.json - DOM Test Image
dom/Dockerfile
Environment & Delivery
Workstation provisioning and repository delivery.
- Ubuntu Provisioning · Configures the Ubuntu curriculum environment.
sh/debian/ubuntu/configure.sh - Ubuntu Setup
sh/debian/ubuntu/setup.sh - Formatter Utility · Small formatter used by the provisioned environment.
sh/debian/ubuntu/system/usr/local/src/format/main.go - GitHub Actions · Builds and sanitizes images and runs compliance checks.
Connections 21
- Repository Guide → Curriculum Root: directs readers to
- Curriculum Root → AI Track: contains
- Curriculum Root → Blockchain Track: contains
- Curriculum Root → Forum Specification: contains
- Curriculum Root → DevOps Subjects: contains
- Curriculum Root → DOM Exercise Spec: contains
- DOM Exercise Spec → DOM Exercise Asset: uses asset
- Forum Specification → Forum Audit: reviewed by
- AI Track → Classification Audit: includes audit stage
- JS Test Package → JS Test Runner: defines runtime
- JS Test Runner → DOM Test Suite: executes
- DOM Test Package → Legacy DOM Runner: defines runtime
- DOM Test Image → Legacy DOM Runner: containerizes
- Legacy DOM Runner → DOM Exercise Spec: validates behavior
- Shell Test Image → Shell Harness: containerizes
- Shell Harness → Reference Solutions: uses fixtures
- Shell Harness → DevOps Subjects: validates exercises
- Ubuntu Setup → Ubuntu Provisioning: runs
- Ubuntu Provisioning → Formatter Utility: installs or uses
- GitHub Actions → Shell Test Image: builds
- GitHub Actions → DOM Test Image: builds