How developedbymarc/csc263-openacademyfrontend works
OpenAcademy is a SvelteKit learning platform for discovering courses, enrolling in and viewing lessons, managing accounts, and creating courses. Its principal user journey runs from course exploration into a course and lesson view; authentication and staff dashboards are distinct branches. The repository contains server-side route handlers, a server API layer, and a generated API client. README-documented media handling and Markdown sanitization are included, but their exact implementation call sites were not sampled, so those relationships are shown as unverified.
Main entry points: (private) Private routes · apis Generated API operations · Course Course and lessons · api.ts Server API facade
Components 20
SvelteKit routes
- Public routes
src/routes - Authentication routes
src/routes/auth - Private routes
src/routes/(private)
Learning experience
- Course exploration
src/lib/pages/Explore/Explore.svelte - Course and lessons
src/lib/pages/Course - Course authoring
src/lib/pages/CourseCreation - Staff dashboard
src/lib/pages/Dashboard - Sign-in forms
src/lib/pages/Auth
Server and domain
- Form validation
src/lib/forms.ts - Server API facade
src/lib/server/api.ts - Auth utilities
src/lib/server/auth-utils.ts - Course domain types
src/lib/types/entities/course.ts - User and enrollment types
src/lib/types/entities/user.ts - Markdown rendering
src/lib/utils/markdown.ts
API client
- Generated API operations
src/lib/api/apis - HTTP client runtime
src/lib/api/runtime.ts - API data models
src/lib/api/models - Lesson asset service
src/lib/api/apis/LessonAssetsApi.ts
Other components
- Learner or staff
- OpenAcademy API
Connections 19
- Learner or staff → Public routes: visits
- Learner or staff → Authentication routes: authenticates
- Learner or staff → Private routes: uses
- Public routes → Course exploration: renders
- Private routes → Course and lessons: renders
- Private routes → Course authoring: renders
- Private routes → Staff dashboard: renders
- Authentication routes → Sign-in forms: renders
- Sign-in forms → Form validation: validates with
- Course authoring → Form validation: validates with
- Server API facade → Auth utilities: loads identity
README.md - Server API facade → Generated API operations: calls
- Generated API operations → HTTP client runtime: uses
src/lib/api/apis/AuthApi.ts - Generated API operations → API data models: converts responses
src/lib/api/apis/AuthApi.ts - Generated API operations → OpenAcademy API: sends requests
- Lesson asset service → OpenAcademy API: uploads assets
README.md - Course and lessons → Markdown rendering: renders sanitized
README.md - Course and lessons → Lesson asset service: loads assets
README.md - Course domain types → User and enrollment types: referenced by
src/lib/types/entities/user.ts