{"id":51654650,"url":"https://github.com/heig-tin-info/heig-classroom","last_synced_at":"2026-07-14T08:03:29.826Z","repository":{"id":369915590,"uuid":"1291972338","full_name":"heig-tin-info/heig-classroom","owner":"heig-tin-info","description":"Yet another GitHub Classroom Implementation","archived":false,"fork":false,"pushed_at":"2026-07-07T13:04:10.000Z","size":275,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-07T13:14:15.867Z","etag":null,"topics":["classroom","github","teaching-materials"],"latest_commit_sha":null,"homepage":"https://heig-tin-info.github.io/heig-classroom/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heig-tin-info.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-07T07:58:32.000Z","updated_at":"2026-07-07T13:04:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/heig-tin-info/heig-classroom","commit_stats":null,"previous_names":["heig-tin-info/heig-classroom"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/heig-tin-info/heig-classroom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heig-tin-info%2Fheig-classroom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heig-tin-info%2Fheig-classroom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heig-tin-info%2Fheig-classroom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heig-tin-info%2Fheig-classroom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heig-tin-info","download_url":"https://codeload.github.com/heig-tin-info/heig-classroom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heig-tin-info%2Fheig-classroom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35451878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-14T02:00:06.603Z","response_time":114,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["classroom","github","teaching-materials"],"created_at":"2026-07-14T08:03:24.089Z","updated_at":"2026-07-14T08:03:29.821Z","avatar_url":"https://github.com/heig-tin-info.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HEIG GitHub Classroom\n\nA teacher/student web portal built on top of GitHub: classrooms, assignments,\nstudent repository provisioning, CI-based grading and automatic deadlines.\n\nSpecifications live in [docs/](docs/) (needs analysis, requirements, functional\nspecs, architecture) as TeXSmith sources that compile to PDF. Architecture\ndecision records are under [docs/adr/](docs/adr/).\n\n## Development\n\nPrerequisites: Node.js \u003e= 22 (pnpm via corepack), Docker (dev Postgres + Keycloak).\n\n```bash\ncorepack enable pnpm\npnpm install\n\n# Database + local OIDC IdP (Keycloak, realm hgc-dev,\n# test accounts teacher/teacher and student/student)\ndocker compose -f docker-compose.dev.yml up -d\n\ncp .env.example .env\npnpm --filter @hgc/server db:migrate   # Drizzle migrations\npnpm dev                               # server on :3000\n```\n\nSanity checks:\n\n```bash\npnpm build \u0026\u0026 pnpm typecheck \u0026\u0026 pnpm test\ncurl http://localhost:3000/healthz\ncurl http://localhost:3000/metrics\n```\n\n## Deployment\n\nProduction runs at \u003chttps://classroom.chevallier.io\u003e (a single small VM:\nPostgres, the app container, and Caddy natively on the host). Deployment is\nfully automated by CI ([.github/workflows/ci.yml](.github/workflows/ci.yml)):\nevery push to `main`\n\n1. runs the checks (build, typecheck, test);\n2. builds the production image on GitHub Actions and pushes it to GHCR\n   (`ghcr.io/heig-tin-info/heig-classroom`, tags `latest` + commit sha);\n3. SSHes to the VM and triggers [deploy.sh](deploy.sh), which pulls the new\n   image and runs `docker compose up -d` — a few seconds, no contention.\n\nThe image is **never built on the VM** (453 MiB / 1 CPU): an on-VM build swaps\nthe host and starves Postgres, and fills the disk. Security: the CI key is\npinned to `deploy.sh` in the VM's `authorized_keys`\n(`command=\"…\",restrict`), so it can only deploy — never open a shell. The GHCR\npackage stays private; the runner's ephemeral token is handed to the VM over\nSSH just for the pull, so no registry credential is stored on the VM.\n\nRoll back to a previous image on the VM:\n\n```bash\nIMAGE_TAG=\u003ccommit-sha\u003e docker compose -f compose.prod.yml --env-file .env.prod up -d\n```\n\nOne-time operator setup (VM provisioning, the `DEPLOY_SSH_KEY` secret, backups)\nis documented in [deploy.md](deploy.md).\n\n## Layout\n\n| Path | Role |\n| --- | --- |\n| `packages/domain` | Pure business rules (GR-02 grade parsing, freezing...), framework-free |\n| `packages/contracts` | Zod schemas shared across front, back and CLI |\n| `apps/server` | Fastify monolith: API, webhooks, SSE, jobs (pg-boss), `WORKER_MODE` |\n| `docs/` | Specifications (TeXSmith) and ADRs |\n\n## PDF documentation\n\n```bash\npython3 -m venv .venv \u0026\u0026 .venv/bin/pip install --group docs\ncd build \u0026\u0026 ../.venv/bin/texsmith ../docs/01-cahier-des-charges.md --build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheig-tin-info%2Fheig-classroom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheig-tin-info%2Fheig-classroom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheig-tin-info%2Fheig-classroom/lists"}