# sbajrac2/ai-for-accessible-education architecture

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

- Interactive diagram: https://gitdiagram.com/sbajrac2/ai-for-accessible-education
- Repository: https://github.com/sbajrac2/ai-for-accessible-education

## Overview

AI for Accessible Education is an adaptive learning platform. Learners select a topic, take a RAISEC personality test, receive a generated course, complete modules and quizzes, and finish with progress tracking and feedback. The React app routes these stages; course generation uses a locally hosted text-generation model, while the Go backend provides API, authentication, and database subsystems. The README documents the overall learning flow and MongoDB/OAuth stack, but sampled source does not establish most frontend-to-backend wiring or backend handler-to-database calls.

Main entry points: [`src/App.tsx`](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/App.tsx) (App routing), [`src/pages/Dashboard.tsx`](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/Dashboard.tsx) (Course dashboard), [`src/pages/ModulePage.tsx`](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/ModulePage.tsx) (Learning module), [`src/pages/CourseGeneration.tsx`](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/CourseGeneration.tsx) (Course generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning experience"]
  node_app["App routing<br/>[App.tsx]"]
  node_topic["Topic selection<br/>[TopicSelection.tsx]"]
  node_personality["RAISEC test"]
  node_nlpquiz["NLP quiz<br/>[NLPQuiz.tsx]"]
  node_dashboard["Course dashboard<br/>[Dashboard.tsx]"]
  node_module["Learning module<br/>[ModulePage.tsx]"]
  node_completion["Course completion<br/>[CourseComplete.tsx]"]
  node_feedback["Feedback<br/>[feedbackroute.go]"]
end

subgraph group_generation["Course generation"]
  node_generation["Course generation"]
  node_model["Local text model<br/>[model.js]"]
end

subgraph group_backend["Backend API"]
  node_api["API startup<br/>[main.go]"]
  node_routes["API routes<br/>[routes.go]"]
end

subgraph group_persistence["Persistence and identity"]
  node_auth["Google OAuth<br/>[auth.go]"]
  node_dbaccess["Learning data access"]
  node_mongodb[("MongoDB")]
end

node_learner(("Learner"))

node_learner -->|"chooses topic"| node_topic
node_topic -->|"continues to"| node_personality
node_personality -->|"personalizes"| node_generation
node_generation -->|"generates with"| node_model
node_generation -->|"presents course"| node_dashboard
node_dashboard -->|"opens modules"| node_module
node_module -.->|"assessment stage"| node_nlpquiz
node_module -->|"updates progress"| node_dashboard
node_dashboard -->|"continues to"| node_completion
node_completion -->|"collects feedback"| node_feedback
node_app -->|"routes to"| node_topic
node_app -->|"routes to"| node_personality
node_app -->|"routes to"| node_generation
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_module
node_app -->|"routes to"| node_completion
node_api -.->|"configures routes"| node_routes
node_routes -.->|"authenticates with"| node_auth
node_routes -.->|"uses data access"| node_dbaccess
node_dbaccess -.->|"persists to"| node_mongodb

click node_app "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/App.tsx"
click node_topic "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/TopicSelection.tsx"
click node_personality "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/PersonalityTest.tsx"
click node_nlpquiz "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/NLPQuiz.tsx"
click node_dashboard "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/Dashboard.tsx"
click node_module "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/ModulePage.tsx"
click node_completion "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/CourseComplete.tsx"
click node_feedback "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/backend/backend/GmailManagement/internal/server/feedbackroute.go"
click node_generation "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/CourseGeneration.tsx"
click node_model "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/model.js"
click node_api "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/backend/backend/GmailManagement/cmd/api/main.go"
click node_routes "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/backend/backend/GmailManagement/internal/server/routes.go"
click node_auth "https://github.com/sbajrac2/ai-for-accessible-education/blob/main/backend/backend/GmailManagement/internal/auth/auth.go"
click node_dbaccess "https://github.com/sbajrac2/ai-for-accessible-education/tree/main/backend/backend/GmailManagement/internal/database"

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_topic,node_personality,node_nlpquiz,node_dashboard,node_module,node_completion,node_feedback toneBlue
class node_generation,node_model toneAmber
class node_api,node_routes toneMint
class node_auth,node_dbaccess,node_mongodb toneRose
class node_learner toneIndigo
```

## Components

### Learning experience

- [App routing](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/App.tsx): `src/App.tsx`
- [Topic selection](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/TopicSelection.tsx): `src/pages/TopicSelection.tsx`
- [RAISEC test](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/PersonalityTest.tsx): `src/pages/PersonalityTest.tsx`
- [NLP quiz](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/NLPQuiz.tsx): `src/pages/NLPQuiz.tsx`
- [Course dashboard](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/Dashboard.tsx): `src/pages/Dashboard.tsx`
- [Learning module](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/ModulePage.tsx): `src/pages/ModulePage.tsx`
- [Course completion](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/CourseComplete.tsx): `src/pages/CourseComplete.tsx`
- [Feedback](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/backend/backend/GmailManagement/internal/server/feedbackroute.go): `backend/backend/GmailManagement/internal/server/feedbackroute.go`

### Course generation

- [Course generation](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/src/pages/CourseGeneration.tsx): `src/pages/CourseGeneration.tsx`
- [Local text model](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/model.js): `model.js`

### Backend API

- [API startup](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/backend/backend/GmailManagement/cmd/api/main.go): `backend/backend/GmailManagement/cmd/api/main.go`
- [API routes](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/backend/backend/GmailManagement/internal/server/routes.go): `backend/backend/GmailManagement/internal/server/routes.go`

### Persistence and identity

- [Google OAuth](https://github.com/sbajrac2/ai-for-accessible-education/blob/main/backend/backend/GmailManagement/internal/auth/auth.go): `backend/backend/GmailManagement/internal/auth/auth.go`
- [Learning data access](https://github.com/sbajrac2/ai-for-accessible-education/tree/main/backend/backend/GmailManagement/internal/database): `backend/backend/GmailManagement/internal/database`
- **MongoDB**

### Other components

- **Learner**

## Connections

- Learner → Topic selection: chooses topic
- Topic selection → RAISEC test: continues to
- RAISEC test → Course generation: personalizes
- Course generation → Local text model: generates with (evidence: `src/pages/CourseGeneration.tsx`)
- Course generation → Course dashboard: presents course
- Course dashboard → Learning module: opens modules (evidence: `src/App.tsx`)
- Learning module → NLP quiz: assessment stage
- Learning module → Course dashboard: updates progress
- Course dashboard → Course completion: continues to
- Course completion → Feedback: collects feedback
- App routing → Topic selection: routes to (evidence: `src/App.tsx`)
- App routing → RAISEC test: routes to (evidence: `src/App.tsx`)
- App routing → Course generation: routes to (evidence: `src/App.tsx`)
- App routing → Course dashboard: routes to (evidence: `src/App.tsx`)
- App routing → Learning module: routes to (evidence: `src/App.tsx`)
- App routing → Course completion: routes to (evidence: `src/App.tsx`)
- API startup → API routes: configures routes
- API routes → Google OAuth: authenticates with
- API routes → Learning data access: uses data access
- Learning data access → MongoDB: persists to
