# keeevys/capstone architecture

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

- Interactive diagram: https://gitdiagram.com/keeevys/capstone
- Repository: https://github.com/keeevys/capstone

## Overview

Phonexis is a role-based phonics-learning platform. Students authenticate, enter a learning workspace, practice literacy lessons and games, complete assessments, and review progress; teachers manage classes, materials, pretests, and student progress, while administrators manage accounts. The React client communicates with a Spring REST backend, which applies application services and persists domain records. The README documents these broad responsibilities; sampled source additionally confirms selected client/backend calls and service delegation. Many feature implementations were not sampled, so their internal links are omitted or based only on README documentation.

Main entry points: [`Web/phonexis/src/App.js`](https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/App.js) (App shell), [`Web/phonexis/src/components/Teacher`](https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Teacher) (Teacher workspace), [`Web/phonexis/src/components/Modules`](https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Modules) (Literacy modules), [`backend/src/main/java/com/phonexis/backend/Controller/PretestController.java`](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/PretestController.java) (Pretests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["React learning client"]
  node_webapp["App shell<br/>[App.js]"]
  node_routing["Route state<br/>[Routing.js]"]
  node_authclient["Auth and API client<br/>[supabaseClient.js]"]
  node_authcontext["Auth context<br/>[AuthContext.js]"]
end

subgraph group_learning["Student learning"]
  node_dashboard["Student dashboard"]
  node_literacy["Literacy modules"]
  node_games["Learning games"]
  node_voice["Voice practice<br/>[VoicePractice.js]"]
  node_pretests["Pretests"]
  node_progress["Progress tracking"]
  node_profile["Student profile<br/>[Profile.js]"]
end

subgraph group_teaching["Teacher and admin"]
  node_classes["Class management"]
  node_materials["Learning materials"]
  node_teacherui["Teacher workspace"]
  node_adminui["Admin workspace"]
end

subgraph group_api["Spring API"]
  node_authapi["Authentication API"]
  node_userapi["User API"]
  node_moduleapi["Module and game APIs"]
  node_teacherapi["Teacher activity API"]
end

subgraph group_domain["Backend domain"]
  node_usersvc["User services<br/>[UserService.java]"]
  node_pretestsvc["Assessment service"]
  node_progresssvc["Progress service"]
  node_storage["Supabase storage"]
  node_records[("Learning records")]
end

node_user(("User"))

node_user -->|"uses"| node_webapp
node_webapp -->|"renders"| node_routing
node_webapp -->|"renders"| node_dashboard
node_webapp -->|"routes to"| node_literacy
node_webapp -->|"routes to"| node_teacherui
node_webapp -->|"routes to"| node_adminui
node_webapp -->|"uses"| node_authcontext
node_webapp -->|"calls"| node_authclient
node_authclient -->|"requests"| node_authapi
node_authclient -->|"requests"| node_userapi
node_authapi -->|"delegates to"| node_usersvc
node_userapi -.->|"uses"| node_usersvc
node_usersvc -.->|"manages"| node_records
node_user -->|"practices"| node_dashboard
node_dashboard -.->|"opens"| node_literacy
node_literacy -->|"offers"| node_games
node_literacy -->|"offers"| node_voice
node_literacy -->|"takes"| node_pretests
node_user -->|"completes"| node_pretests
node_pretests -->|"delegates to"| node_pretestsvc
node_pretestsvc -->|"uses audio"| node_storage
node_pretestsvc -.->|"manages"| node_records
node_user -->|"views"| node_progress
node_progress -->|"delegates to"| node_progresssvc
node_progresssvc -->|"reads and writes"| node_records
node_user -->|"joins"| node_classes
node_teacherui -->|"manages"| node_classes
node_teacherui -->|"shares"| node_materials
node_materials -.->|"stores files"| node_storage
node_teacherui -->|"creates"| node_pretests
node_teacherui -->|"reviews"| node_progress
node_teacherui -->|"requests"| node_teacherapi
node_adminui -->|"manages accounts"| node_userapi
node_moduleapi -.->|"manages"| node_records

click node_webapp "https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/App.js"
click node_routing "https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/router/Routing.js"
click node_authclient "https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/lib/supabaseClient.js"
click node_authcontext "https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/context/AuthContext.js"
click node_dashboard "https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Dashboard"
click node_literacy "https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Modules"
click node_games "https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Modules"
click node_voice "https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/components/VoicePractice/VoicePractice.js"
click node_pretests "https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/PretestController.java"
click node_progress "https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/ProgressController.java"
click node_profile "https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/components/Profile/Profile.js"
click node_classes "https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/ClassSectionController.java"
click node_materials "https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Service/LearningMaterialService.java"
click node_teacherui "https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Teacher"
click node_adminui "https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Admin"
click node_authapi "https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/AuthController.java"
click node_userapi "https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/UserController.java"
click node_moduleapi "https://github.com/keeevys/capstone/tree/main/backend/src/main/java/com/phonexis/backend/Controller"
click node_teacherapi "https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/TeacherActivityController.java"
click node_usersvc "https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Service/UserService.java"
click node_pretestsvc "https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Service/PretestService.java"
click node_progresssvc "https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Service/ProgressService.java"
click node_storage "https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Service/SupabaseStorageService.java"
click node_records "https://github.com/keeevys/capstone/tree/main/backend/src/main/java/com/phonexis/backend/Entity"

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_webapp,node_routing,node_authclient,node_authcontext,node_user toneBlue
class node_dashboard,node_literacy,node_games,node_voice,node_pretests,node_progress,node_profile toneAmber
class node_classes,node_materials,node_teacherui,node_adminui toneMint
class node_authapi,node_userapi,node_moduleapi,node_teacherapi toneRose
class node_usersvc,node_pretestsvc,node_progresssvc,node_storage,node_records toneIndigo
```

## Components

### React learning client

- [App shell](https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/App.js): `Web/phonexis/src/App.js`
- [Route state](https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/router/Routing.js): `Web/phonexis/src/router/Routing.js`
- [Auth and API client](https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/lib/supabaseClient.js): `Web/phonexis/src/lib/supabaseClient.js`
- [Auth context](https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/context/AuthContext.js): `Web/phonexis/src/context/AuthContext.js`

### Student learning

- [Student dashboard](https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Dashboard): `Web/phonexis/src/components/Dashboard`
- [Literacy modules](https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Modules): `Web/phonexis/src/components/Modules`
- [Learning games](https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Modules): `Web/phonexis/src/components/Modules`
- [Voice practice](https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/components/VoicePractice/VoicePractice.js): `Web/phonexis/src/components/VoicePractice/VoicePractice.js`
- [Pretests](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/PretestController.java): `backend/src/main/java/com/phonexis/backend/Controller/PretestController.java`
- [Progress tracking](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/ProgressController.java): `backend/src/main/java/com/phonexis/backend/Controller/ProgressController.java`
- [Student profile](https://github.com/keeevys/capstone/blob/main/Web/phonexis/src/components/Profile/Profile.js): `Web/phonexis/src/components/Profile/Profile.js`

### Teacher and admin

- [Class management](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/ClassSectionController.java): `backend/src/main/java/com/phonexis/backend/Controller/ClassSectionController.java`
- [Learning materials](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Service/LearningMaterialService.java): `backend/src/main/java/com/phonexis/backend/Service/LearningMaterialService.java`
- [Teacher workspace](https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Teacher): `Web/phonexis/src/components/Teacher`
- [Admin workspace](https://github.com/keeevys/capstone/tree/main/Web/phonexis/src/components/Admin): `Web/phonexis/src/components/Admin`

### Spring API

- [Authentication API](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/AuthController.java): `backend/src/main/java/com/phonexis/backend/Controller/AuthController.java`
- [User API](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/UserController.java): `backend/src/main/java/com/phonexis/backend/Controller/UserController.java`
- [Module and game APIs](https://github.com/keeevys/capstone/tree/main/backend/src/main/java/com/phonexis/backend/Controller): `backend/src/main/java/com/phonexis/backend/Controller`
- [Teacher activity API](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Controller/TeacherActivityController.java): `backend/src/main/java/com/phonexis/backend/Controller/TeacherActivityController.java`

### Backend domain

- [User services](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Service/UserService.java): `backend/src/main/java/com/phonexis/backend/Service/UserService.java`
- [Assessment service](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Service/PretestService.java): `backend/src/main/java/com/phonexis/backend/Service/PretestService.java`
- [Progress service](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Service/ProgressService.java): `backend/src/main/java/com/phonexis/backend/Service/ProgressService.java`
- [Supabase storage](https://github.com/keeevys/capstone/blob/main/backend/src/main/java/com/phonexis/backend/Service/SupabaseStorageService.java): `backend/src/main/java/com/phonexis/backend/Service/SupabaseStorageService.java`
- [Learning records](https://github.com/keeevys/capstone/tree/main/backend/src/main/java/com/phonexis/backend/Entity): `backend/src/main/java/com/phonexis/backend/Entity`

### Other components

- **User**

## Connections

- User → App shell: uses (evidence: `README.md`)
- App shell → Route state: renders (evidence: `Web/phonexis/src/App.js`)
- App shell → Student dashboard: renders (evidence: `Web/phonexis/src/App.js`)
- App shell → Literacy modules: routes to (evidence: `Web/phonexis/src/App.js`)
- App shell → Teacher workspace: routes to (evidence: `README.md`)
- App shell → Admin workspace: routes to (evidence: `README.md`)
- App shell → Auth context: uses (evidence: `Web/phonexis/src/context/AuthContext.js`)
- App shell → Auth and API client: calls (evidence: `Web/phonexis/src/App.js`)
- Auth and API client → Authentication API: requests (evidence: `Web/phonexis/src/lib/supabaseClient.js`)
- Auth and API client → User API: requests (evidence: `README.md`)
- Authentication API → User services: delegates to (evidence: `backend/src/main/java/com/phonexis/backend/Controller/AuthController.java`)
- User API → User services: uses
- User services → Learning records: manages (evidence: `backend/src/main/java/com/phonexis/backend/Service/UserService.java`)
- User → Student dashboard: practices (evidence: `README.md`)
- Student dashboard → Literacy modules: opens
- Literacy modules → Learning games: offers (evidence: `README.md`)
- Literacy modules → Voice practice: offers (evidence: `README.md`)
- Literacy modules → Pretests: takes (evidence: `README.md`)
- User → Pretests: completes (evidence: `README.md`)
- Pretests → Assessment service: delegates to (evidence: `backend/src/main/java/com/phonexis/backend/Controller/PretestController.java`)
- Assessment service → Supabase storage: uses audio (evidence: `backend/src/main/java/com/phonexis/backend/Service/PretestService.java`)
- Assessment service → Learning records: manages (evidence: `backend/src/main/java/com/phonexis/backend/Service/PretestService.java`)
- User → Progress tracking: views (evidence: `README.md`)
- Progress tracking → Progress service: delegates to (evidence: `backend/src/main/java/com/phonexis/backend/Controller/ProgressController.java`)
- Progress service → Learning records: reads and writes (evidence: `backend/src/main/java/com/phonexis/backend/Service/ProgressService.java`)
- User → Class management: joins (evidence: `README.md`)
- Teacher workspace → Class management: manages (evidence: `README.md`)
- Teacher workspace → Learning materials: shares (evidence: `README.md`)
- Learning materials → Supabase storage: stores files
- Teacher workspace → Pretests: creates (evidence: `README.md`)
- Teacher workspace → Progress tracking: reviews (evidence: `README.md`)
- Teacher workspace → Teacher activity API: requests (evidence: `README.md`)
- Admin workspace → User API: manages accounts (evidence: `README.md`)
- Module and game APIs → Learning records: manages (evidence: `backend/src/main/java/com/phonexis/backend/Controller/PretestController.java`)
