# xaviworks/acadexv3 architecture

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

- Interactive diagram: https://gitdiagram.com/xaviworks/acadexv3
- Repository: https://github.com/xaviworks/acadexv3

## Overview

ACADEX is a multi-role academic records and outcome-based grading system. Its principal workflow is staff managing academic periods, students and subjects; instructors record assessment scores and term grades; the system calculates final grades and tracks course-outcome attainment; and academic leaders review reports. The graph also preserves documented account security, bulk student import, formula configuration and disaster recovery. The README describes product capabilities, while the sampled source confirms selected model relationships and report aggregation; unsampled controller and service connections are not asserted as inspected.

Main entry points: [`app/Http/Controllers/InstructorController.php`](https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/InstructorController.php) (Instructor Portal), [`app/Http/Controllers/AdminController.php`](https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/AdminController.php) (Admin Portal), [`app/Services/CourseOutcomeReportingService.php`](https://github.com/xaviworks/acadexv3/blob/main/app/Services/CourseOutcomeReportingService.php) (Outcome Reporting), [`app/Models/Activity.php`](https://github.com/xaviworks/acadexv3/blob/main/app/Models/Activity.php) (Assessments and Scores)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portals["Role Portals"]
  node_instructor["Instructor Portal"]
  node_admin["Admin Portal"]
  node_leaders["Academic Leaders"]
end

subgraph group_grading["Grades and Records"]
  node_period[("Academic Periods<br/>[AcademicPeriod.php]")]
  node_students[("Student Records<br/>[Student.php]")]
  node_subjects[("Courses and Subjects<br/>[Subject.php]")]
  node_assessment[("Assessments and Scores<br/>[Activity.php]")]
  node_grades["Grade Management"]
  node_finalgrades[("Final Grades<br/>[FinalGrade.php]")]
  node_formula["Formula Configuration"]
  node_formula_model[("Grade Formulas<br/>[GradesFormula.php]")]
  node_import["Student Import<br/>[StudentsImport.php]"]
end

subgraph group_outcomes["Outcome Analytics"]
  node_co[("Course Outcomes<br/>[CourseOutcomes.php]")]
  node_reporting["Outcome Reporting"]
  node_reports["Leadership Reports"]
end

subgraph group_identity["Identity and Security"]
  node_account[("User Accounts<br/>[User.php]")]
  node_login["Login and Sessions"]
  node_twofactor["Two-Factor Setup"]
end

subgraph group_operations["System Operations"]
  node_recovery["Disaster Recovery"]
end

node_staff(("Academic Staff"))

node_staff -->|"uses portal"| node_instructor
node_staff -->|"uses portal"| node_admin
node_staff -->|"uses portal"| node_leaders
node_instructor -->|"manages enrollment"| node_students
node_instructor -->|"manages subjects"| node_subjects
node_instructor -->|"records scores"| node_assessment
node_instructor -->|"enters grades"| node_grades
node_admin -->|"configures periods"| node_period
node_admin -->|"configures formulas"| node_formula
node_formula -->|"manages formulas"| node_formula_model
node_grades -->|"calculates grades"| node_finalgrades
node_import -->|"imports records"| node_students
node_assessment -->|"belongs to subject"| node_subjects
node_assessment -->|"maps to outcome"| node_co
node_reports -->|"requests aggregates"| node_reporting
node_reporting -->|"reads assessments"| node_assessment
node_reporting -->|"reads enrollment"| node_students
node_reporting -->|"reads outcomes"| node_co
node_leaders -->|"reviews reports"| node_reports
node_staff -->|"authenticates"| node_login
node_login -->|"checks account"| node_account
node_account -->|"secures account"| node_twofactor
node_admin -->|"manages recovery"| node_recovery

click node_instructor "https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/InstructorController.php"
click node_admin "https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/AdminController.php"
click node_leaders "https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/ChairpersonController.php"
click node_period "https://github.com/xaviworks/acadexv3/blob/main/app/Models/AcademicPeriod.php"
click node_students "https://github.com/xaviworks/acadexv3/blob/main/app/Models/Student.php"
click node_subjects "https://github.com/xaviworks/acadexv3/blob/main/app/Models/Subject.php"
click node_assessment "https://github.com/xaviworks/acadexv3/blob/main/app/Models/Activity.php"
click node_grades "https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/GradeController.php"
click node_finalgrades "https://github.com/xaviworks/acadexv3/blob/main/app/Models/FinalGrade.php"
click node_formula "https://github.com/xaviworks/acadexv3/blob/main/app/Services/GradesFormulaService.php"
click node_formula_model "https://github.com/xaviworks/acadexv3/blob/main/app/Models/GradesFormula.php"
click node_import "https://github.com/xaviworks/acadexv3/blob/main/app/Imports/StudentsImport.php"
click node_co "https://github.com/xaviworks/acadexv3/blob/main/app/Models/CourseOutcomes.php"
click node_reporting "https://github.com/xaviworks/acadexv3/blob/main/app/Services/CourseOutcomeReportingService.php"
click node_reports "https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/CourseOutcomeReportsController.php"
click node_account "https://github.com/xaviworks/acadexv3/blob/main/app/Models/User.php"
click node_login "https://github.com/xaviworks/acadexv3/blob/main/app/Services/Auth/LoginFlowService.php"
click node_twofactor "https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/Profile/TwoFactorAuthenticationController.php"
click node_recovery "https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/Admin/DisasterRecoveryController.php"

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_instructor,node_admin,node_leaders toneBlue
class node_period,node_students,node_subjects,node_assessment,node_grades,node_finalgrades,node_formula,node_formula_model,node_import toneAmber
class node_co,node_reporting,node_reports toneMint
class node_account,node_login,node_twofactor toneRose
class node_recovery,node_staff toneIndigo
```

## Components

### Role Portals

- [Instructor Portal](https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/InstructorController.php): `app/Http/Controllers/InstructorController.php`
- [Admin Portal](https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/AdminController.php): `app/Http/Controllers/AdminController.php`
- [Academic Leaders](https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/ChairpersonController.php): `app/Http/Controllers/ChairpersonController.php`

### Grades and Records

- [Academic Periods](https://github.com/xaviworks/acadexv3/blob/main/app/Models/AcademicPeriod.php): `app/Models/AcademicPeriod.php`
- [Student Records](https://github.com/xaviworks/acadexv3/blob/main/app/Models/Student.php): `app/Models/Student.php`
- [Courses and Subjects](https://github.com/xaviworks/acadexv3/blob/main/app/Models/Subject.php): `app/Models/Subject.php`
- [Assessments and Scores](https://github.com/xaviworks/acadexv3/blob/main/app/Models/Activity.php): `app/Models/Activity.php`
- [Grade Management](https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/GradeController.php): `app/Http/Controllers/GradeController.php`
- [Final Grades](https://github.com/xaviworks/acadexv3/blob/main/app/Models/FinalGrade.php): `app/Models/FinalGrade.php`
- [Formula Configuration](https://github.com/xaviworks/acadexv3/blob/main/app/Services/GradesFormulaService.php): `app/Services/GradesFormulaService.php`
- [Grade Formulas](https://github.com/xaviworks/acadexv3/blob/main/app/Models/GradesFormula.php): `app/Models/GradesFormula.php`
- [Student Import](https://github.com/xaviworks/acadexv3/blob/main/app/Imports/StudentsImport.php): `app/Imports/StudentsImport.php`

### Outcome Analytics

- [Course Outcomes](https://github.com/xaviworks/acadexv3/blob/main/app/Models/CourseOutcomes.php): `app/Models/CourseOutcomes.php`
- [Outcome Reporting](https://github.com/xaviworks/acadexv3/blob/main/app/Services/CourseOutcomeReportingService.php): `app/Services/CourseOutcomeReportingService.php`
- [Leadership Reports](https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/CourseOutcomeReportsController.php): `app/Http/Controllers/CourseOutcomeReportsController.php`

### Identity and Security

- [User Accounts](https://github.com/xaviworks/acadexv3/blob/main/app/Models/User.php): `app/Models/User.php`
- [Login and Sessions](https://github.com/xaviworks/acadexv3/blob/main/app/Services/Auth/LoginFlowService.php): `app/Services/Auth/LoginFlowService.php`
- [Two-Factor Setup](https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/Profile/TwoFactorAuthenticationController.php): `app/Http/Controllers/Profile/TwoFactorAuthenticationController.php`

### System Operations

- [Disaster Recovery](https://github.com/xaviworks/acadexv3/blob/main/app/Http/Controllers/Admin/DisasterRecoveryController.php): `app/Http/Controllers/Admin/DisasterRecoveryController.php`

### Other components

- **Academic Staff**

## Connections

- Academic Staff → Instructor Portal: uses portal (evidence: `README.md`)
- Academic Staff → Admin Portal: uses portal (evidence: `README.md`)
- Academic Staff → Academic Leaders: uses portal (evidence: `README.md`)
- Instructor Portal → Student Records: manages enrollment (evidence: `README.md`)
- Instructor Portal → Courses and Subjects: manages subjects (evidence: `README.md`)
- Instructor Portal → Assessments and Scores: records scores (evidence: `README.md`)
- Instructor Portal → Grade Management: enters grades (evidence: `README.md`)
- Admin Portal → Academic Periods: configures periods (evidence: `README.md`)
- Admin Portal → Formula Configuration: configures formulas (evidence: `README.md`)
- Formula Configuration → Grade Formulas: manages formulas (evidence: `app/Services/GradesFormulaService.php`)
- Grade Management → Final Grades: calculates grades (evidence: `README.md`)
- Student Import → Student Records: imports records (evidence: `README.md`)
- Assessments and Scores → Courses and Subjects: belongs to subject (evidence: `app/Models/Activity.php`)
- Assessments and Scores → Course Outcomes: maps to outcome (evidence: `app/Models/Activity.php`)
- Leadership Reports → Outcome Reporting: requests aggregates (evidence: `app/Http/Controllers/CourseOutcomeReportsController.php`)
- Outcome Reporting → Assessments and Scores: reads assessments (evidence: `app/Services/CourseOutcomeReportingService.php`)
- Outcome Reporting → Student Records: reads enrollment (evidence: `app/Services/CourseOutcomeReportingService.php`)
- Outcome Reporting → Course Outcomes: reads outcomes (evidence: `app/Services/CourseOutcomeReportingService.php`)
- Academic Leaders → Leadership Reports: reviews reports (evidence: `README.md`)
- Academic Staff → Login and Sessions: authenticates (evidence: `README.md`)
- Login and Sessions → User Accounts: checks account (evidence: `app/Services/Auth/LoginFlowService.php`)
- User Accounts → Two-Factor Setup: secures account (evidence: `README.md`)
- Admin Portal → Disaster Recovery: manages recovery (evidence: `README.md`)
