# ron-neucode/onlium architecture

> Architecture diagram of the GitHub repository ron-neucode/onlium, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ron-neucode/onlium
- Repository: https://github.com/ron-neucode/onlium

## Overview

Onlium is a React frontend for student, instructor, and admin portals backed by a separately maintained ASP.NET Core API. Users enter through the browser routes; students can complete enrollment and use academic services, instructors manage class activities, and admins manage institutional records and approvals. The graph emphasizes these product areas and shared API/session services. Some subsystem paths and connections come from the file tree and SOURCE INDEX rather than inspected implementations, so uncertain links are omitted.

Main entry points: [`src/services/apiService.js`](https://github.com/ron-neucode/onlium/blob/main/src/services/apiService.js) (API client), [`src/App.jsx`](https://github.com/ron-neucode/onlium/blob/main/src/App.jsx) (Route application), [`src/components/enrollment/EnrollmentPage.jsx`](https://github.com/ron-neucode/onlium/blob/main/src/components/enrollment/EnrollmentPage.jsx) (Enrollment workflow), [`src/Instructor/InstructorDashboard.jsx`](https://github.com/ron-neucode/onlium/blob/main/src/Instructor/InstructorDashboard.jsx) (Instructor workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Portal routing"]
  node_app["Route application<br/>[App.jsx]"]
  node_home["University homepage"]
  node_create_account["Account registration<br/>[CreateAccount.jsx]"]
end

subgraph group_enrollment["Student enrollment"]
  node_enrollment_layout["Enrollment portal shell"]
  node_enrollment["Enrollment workflow<br/>[EnrollmentPage.jsx]"]
  node_personal_info["Applicant details"]
  node_requirements["Requirement uploads"]
  node_schedule["Schedule selection<br/>[ChooseSchedule.jsx]"]
  node_program["Program selection<br/>[SelectProgram.jsx]"]
end

subgraph group_student["Student portal"]
  node_student_dashboard["Student dashboard"]
  node_studyload["Study load"]
  node_student_services["Student services"]
  node_profile["Profile editing"]
  node_topbar["Student top bar<br/>[Topbar.jsx]"]
end

subgraph group_operations["Instructor and admin"]
  node_instructor["Instructor workspace"]
  node_instructor_materials["Class materials"]
  node_student_admin["Student administration"]
  node_curriculum["Curriculum management"]
  node_admin_operations["Admin operations"]
end

subgraph group_shared["Shared services"]
  node_api["API client<br/>[apiService.js]"]
  node_auth["Authentication and session<br/>[authService.js]"]
  node_api_config["API configuration<br/>[apiConfig.js]"]
end

node_browser(("Portal users"))
node_backend{{"ASP.NET Core API"}}

node_browser -->|"opens portal"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_create_account
node_app -->|"routes to"| node_enrollment_layout
node_enrollment_layout -->|"renders"| node_enrollment
node_enrollment -->|"renders"| node_personal_info
node_enrollment -->|"renders"| node_requirements
node_enrollment -->|"renders"| node_schedule
node_enrollment -->|"renders"| node_program
node_enrollment -->|"loads drafts"| node_api
node_app -->|"routes to"| node_instructor
node_instructor -->|"requests data"| node_api
node_instructor -->|"uses materials"| node_instructor_materials
node_student_admin -->|"approves applications"| node_api
node_curriculum -->|"manages curriculum"| node_api
node_student_admin -.->|"shares admin area"| node_admin_operations
node_curriculum -.->|"shares admin area"| node_admin_operations
node_studyload -->|"loads study loads"| node_api
node_topbar -->|"opens profile"| node_profile
node_topbar -->|"loads notifications"| node_api
node_profile -->|"updates profile"| node_api
node_api -->|"uses base URL"| node_api_config
node_api -->|"uses auth headers"| node_auth
node_auth -->|"uses base URL"| node_api_config
node_api -->|"sends API requests"| node_backend
node_auth -->|"sends auth requests"| node_backend
node_app -.->|"routes to"| node_student_dashboard
node_app -.->|"routes to"| node_student_services

click node_app "https://github.com/ron-neucode/onlium/blob/main/src/App.jsx"
click node_home "https://github.com/ron-neucode/onlium/blob/main/src/pages/Homepage/HomepageUniversity.jsx"
click node_create_account "https://github.com/ron-neucode/onlium/blob/main/src/pages/Register/CreateAccount.jsx"
click node_enrollment_layout "https://github.com/ron-neucode/onlium/blob/main/src/pages/Enrollment/EnrollmentLayout.jsx"
click node_enrollment "https://github.com/ron-neucode/onlium/blob/main/src/components/enrollment/EnrollmentPage.jsx"
click node_personal_info "https://github.com/ron-neucode/onlium/blob/main/src/components/enrollment/PersonalInformation.jsx"
click node_requirements "https://github.com/ron-neucode/onlium/blob/main/src/components/enrollment/UploadRequirements.jsx"
click node_schedule "https://github.com/ron-neucode/onlium/blob/main/src/components/enrollment/ChooseSchedule.jsx"
click node_program "https://github.com/ron-neucode/onlium/blob/main/src/components/enrollment/SelectProgram.jsx"
click node_student_dashboard "https://github.com/ron-neucode/onlium/blob/main/src/pages/Dashboard/OnliumDashboard.jsx"
click node_studyload "https://github.com/ron-neucode/onlium/blob/main/src/pages/Dashboard/StudyloadStudent.jsx"
click node_student_services "https://github.com/ron-neucode/onlium/tree/main/src/pages/Dashboard"
click node_profile "https://github.com/ron-neucode/onlium/blob/main/src/pages/Profile/EditProfileModal.jsx"
click node_topbar "https://github.com/ron-neucode/onlium/blob/main/src/pages/Topbar/Topbar.jsx"
click node_instructor "https://github.com/ron-neucode/onlium/blob/main/src/Instructor/InstructorDashboard.jsx"
click node_instructor_materials "https://github.com/ron-neucode/onlium/blob/main/src/Instructor/InstructorMaterials.jsx"
click node_student_admin "https://github.com/ron-neucode/onlium/blob/main/src/Admin/StudentManagement.jsx"
click node_curriculum "https://github.com/ron-neucode/onlium/blob/main/src/Admin/CourseCurriculum.jsx"
click node_admin_operations "https://github.com/ron-neucode/onlium/tree/main/src/Admin"
click node_api "https://github.com/ron-neucode/onlium/blob/main/src/services/apiService.js"
click node_auth "https://github.com/ron-neucode/onlium/blob/main/src/services/authService.js"
click node_api_config "https://github.com/ron-neucode/onlium/blob/main/src/services/apiConfig.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_home,node_create_account,node_browser toneBlue
class node_enrollment_layout,node_enrollment,node_personal_info,node_requirements,node_schedule,node_program toneAmber
class node_student_dashboard,node_studyload,node_student_services,node_profile,node_topbar,node_backend toneMint
class node_instructor,node_instructor_materials,node_student_admin,node_curriculum,node_admin_operations toneRose
class node_api,node_auth,node_api_config toneIndigo
```

## Components

### Portal routing

- [Route application](https://github.com/ron-neucode/onlium/blob/main/src/App.jsx): `src/App.jsx`
- [University homepage](https://github.com/ron-neucode/onlium/blob/main/src/pages/Homepage/HomepageUniversity.jsx): `src/pages/Homepage/HomepageUniversity.jsx`
- [Account registration](https://github.com/ron-neucode/onlium/blob/main/src/pages/Register/CreateAccount.jsx): `src/pages/Register/CreateAccount.jsx`

### Student enrollment

- [Enrollment portal shell](https://github.com/ron-neucode/onlium/blob/main/src/pages/Enrollment/EnrollmentLayout.jsx): `src/pages/Enrollment/EnrollmentLayout.jsx`
- [Enrollment workflow](https://github.com/ron-neucode/onlium/blob/main/src/components/enrollment/EnrollmentPage.jsx): `src/components/enrollment/EnrollmentPage.jsx`
- [Applicant details](https://github.com/ron-neucode/onlium/blob/main/src/components/enrollment/PersonalInformation.jsx): `src/components/enrollment/PersonalInformation.jsx`
- [Requirement uploads](https://github.com/ron-neucode/onlium/blob/main/src/components/enrollment/UploadRequirements.jsx): `src/components/enrollment/UploadRequirements.jsx`
- [Schedule selection](https://github.com/ron-neucode/onlium/blob/main/src/components/enrollment/ChooseSchedule.jsx): `src/components/enrollment/ChooseSchedule.jsx`
- [Program selection](https://github.com/ron-neucode/onlium/blob/main/src/components/enrollment/SelectProgram.jsx): `src/components/enrollment/SelectProgram.jsx`

### Student portal

- [Student dashboard](https://github.com/ron-neucode/onlium/blob/main/src/pages/Dashboard/OnliumDashboard.jsx): `src/pages/Dashboard/OnliumDashboard.jsx`
- [Study load](https://github.com/ron-neucode/onlium/blob/main/src/pages/Dashboard/StudyloadStudent.jsx): `src/pages/Dashboard/StudyloadStudent.jsx`
- [Student services](https://github.com/ron-neucode/onlium/tree/main/src/pages/Dashboard): `src/pages/Dashboard`
- [Profile editing](https://github.com/ron-neucode/onlium/blob/main/src/pages/Profile/EditProfileModal.jsx): `src/pages/Profile/EditProfileModal.jsx`
- [Student top bar](https://github.com/ron-neucode/onlium/blob/main/src/pages/Topbar/Topbar.jsx): `src/pages/Topbar/Topbar.jsx`

### Instructor and admin

- [Instructor workspace](https://github.com/ron-neucode/onlium/blob/main/src/Instructor/InstructorDashboard.jsx): `src/Instructor/InstructorDashboard.jsx`
- [Class materials](https://github.com/ron-neucode/onlium/blob/main/src/Instructor/InstructorMaterials.jsx): `src/Instructor/InstructorMaterials.jsx`
- [Student administration](https://github.com/ron-neucode/onlium/blob/main/src/Admin/StudentManagement.jsx): `src/Admin/StudentManagement.jsx`
- [Curriculum management](https://github.com/ron-neucode/onlium/blob/main/src/Admin/CourseCurriculum.jsx): `src/Admin/CourseCurriculum.jsx`
- [Admin operations](https://github.com/ron-neucode/onlium/tree/main/src/Admin): `src/Admin`

### Shared services

- [API client](https://github.com/ron-neucode/onlium/blob/main/src/services/apiService.js): `src/services/apiService.js`
- [Authentication and session](https://github.com/ron-neucode/onlium/blob/main/src/services/authService.js): `src/services/authService.js`
- [API configuration](https://github.com/ron-neucode/onlium/blob/main/src/services/apiConfig.js): `src/services/apiConfig.js`

### Other components

- **Portal users**
- **ASP.NET Core API**

## Connections

- Portal users → Route application: opens portal (evidence: `src/App.jsx`)
- Route application → University homepage: routes to (evidence: `src/App.jsx`)
- Route application → Account registration: routes to (evidence: `src/App.jsx`)
- Route application → Enrollment portal shell: routes to (evidence: `src/App.jsx`)
- Enrollment portal shell → Enrollment workflow: renders (evidence: `src/pages/Enrollment/EnrollmentLayout.jsx`)
- Enrollment workflow → Applicant details: renders (evidence: `src/components/enrollment/EnrollmentPage.jsx`)
- Enrollment workflow → Requirement uploads: renders (evidence: `src/components/enrollment/EnrollmentPage.jsx`)
- Enrollment workflow → Schedule selection: renders (evidence: `src/components/enrollment/EnrollmentPage.jsx`)
- Enrollment workflow → Program selection: renders (evidence: `src/components/enrollment/EnrollmentPage.jsx`)
- Enrollment workflow → API client: loads drafts (evidence: `src/components/enrollment/EnrollmentPage.jsx`)
- Route application → Instructor workspace: routes to (evidence: `src/App.jsx`)
- Instructor workspace → API client: requests data (evidence: `src/Instructor/InstructorDashboard.jsx`)
- Instructor workspace → Class materials: uses materials (evidence: `src/Instructor/InstructorDashboard.jsx`)
- Student administration → API client: approves applications (evidence: `src/Admin/StudentManagement.jsx`)
- Curriculum management → API client: manages curriculum (evidence: `src/Admin/CourseCurriculum.jsx`)
- Student administration → Admin operations: shares admin area (evidence: `src/Admin/StudentManagement.jsx`)
- Curriculum management → Admin operations: shares admin area (evidence: `src/Admin/CourseCurriculum.jsx`)
- Study load → API client: loads study loads (evidence: `src/pages/Dashboard/StudyloadStudent.jsx`)
- Student top bar → Profile editing: opens profile (evidence: `src/pages/Topbar/Topbar.jsx`)
- Student top bar → API client: loads notifications (evidence: `src/pages/Topbar/Topbar.jsx`)
- Profile editing → API client: updates profile (evidence: `src/pages/Profile/EditProfileModal.jsx`)
- API client → API configuration: uses base URL (evidence: `src/services/apiService.js`)
- API client → Authentication and session: uses auth headers (evidence: `src/services/apiService.js`)
- Authentication and session → API configuration: uses base URL (evidence: `src/services/authService.js`)
- API client → ASP.NET Core API: sends API requests (evidence: `README.md`)
- Authentication and session → ASP.NET Core API: sends auth requests (evidence: `src/services/authService.js`)
- Route application → Student dashboard: routes to (evidence: `src/App.jsx`)
- Route application → Student services: routes to (evidence: `src/App.jsx`)
