How cayelaemj/training-and-development-hub works
CABO Learning Hub is a connected education and lifelong-development platform, not just an LMS. A learner signs in, uploads private study material, generates and answers a written exam, then receives AI-assisted scoring and feedback; staff can review results and record audited adjustments in organization workspaces. The broader product also covers academics, learner development, admissions, reporting, governance, and native clients. Edges are limited to README-documented relationships and sampled call sites; many route-to-feature links remain unverified because their implementations were not sampled.
Main entry points: app.ts Express API · writtenExams.ts Written examinations · storage.ts Study materials · index.ts PostgreSQL schema
Components 20
Learner experience
- Web application
artifacts/training-platform/src/App.tsx - Native clients
native-apps/android/app/src/main/java/za/co/cabosolutions/learninghub/MainActivity.kt
Learning and assessment
- Study materials
artifacts/api-server/src/routes/storage.ts - Written examinations
artifacts/api-server/src/routes/writtenExams.ts - Question bank and assessments
artifacts/api-server/src/routes/assessmentQuestionBank.ts - Academics and gradebook
artifacts/api-server/src/routes/academic.ts
Institutional operations
- Organization workspaces
artifacts/api-server/src/routes/organizations.ts - Admissions
artifacts/api-server/src/routes/admissions.ts - Learner development and passport
artifacts/api-server/src/routes/learnerJourney.ts - Reports and issuance
artifacts/api-server/src/routes/reportCards.ts - Governance and accountability
artifacts/api-server/src/lib/accountabilityPolicy.ts
API and services
- AI completion and credits
artifacts/api-server/src/lib/aiCompletion.ts - Express API
artifacts/api-server/src/app.ts - Authentication middleware
artifacts/api-server/src/middlewares/authMiddleware.ts - Object storage service
artifacts/api-server/src/lib/objectStorage.ts - Object access policy
artifacts/api-server/src/lib/objectAcl.ts
Persistence
- PostgreSQL schema
lib/db/src/schema/index.ts - Exam records
lib/db/src/schema/writtenExams.ts - Organization records
lib/db/src/schema/organizations.ts
Other components
- Learner or staff
Connections 20
- Learner or staff → Web application: uses
README.md - Learner or staff → Native clients: uses
- Web application → Express API: requests services
- Native clients → Express API: calls endpoints
- Express API → Authentication middleware: applies middleware
artifacts/api-server/src/app.ts - Express API → Study materials: routes requests
- Study materials → Object storage service: stores private blobs
artifacts/api-server/src/routes/storage.ts - Object storage service → Object access policy: checks access
artifacts/api-server/src/lib/objectStorage.ts - Learner or staff → Study materials: uploads notes
README.md - Learner or staff → Written examinations: generates and submits
README.md - Written examinations → AI completion and credits: uses AI marking
- Written examinations → Exam records: persists attempts
README.md - Organization workspaces → Organization records: stores workspaces
README.md - Organization workspaces → Written examinations: assigns exams
README.md - Learner or staff → Academics and gradebook: records progress
- Learner or staff → Question bank and assessments: practices tests
README.md - Learner or staff → Learner development and passport: tracks development
- Reports and issuance → PostgreSQL schema: reads records
- Governance and accountability → PostgreSQL schema: supports oversight
- Express API → PostgreSQL schema: serves data-backed routes
README.md