# vitech-africa-ltd/kivu-stars-academy architecture

> Architecture diagram of the GitHub repository vitech-africa-ltd/kivu-stars-academy, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vitech-africa-ltd/kivu-stars-academy
- Repository: https://github.com/vitech-africa-ltd/kivu-stars-academy

## Overview

Kivu Stars Academy is a browser-based school-management system. Users sign in through the role-based interface, then use role-specific portals and school modules to manage student, teaching, attendance, homework, finance, and administrative records; document tools produce cards, report cards, and certificates. The README documents broader capabilities than the sampled code excerpts establish, so those capabilities are represented at the App level where no dedicated implementation path is visible. Relationships below are limited to documented or indexed wiring; unsampled internals are not inferred.

Main entry points: [`src/App.tsx`](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/App.tsx) (School management), [`src/ParentPortal.tsx`](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/ParentPortal.tsx) (Parent portal), [`src/UserManagementPage.tsx`](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/UserManagementPage.tsx) (User management), [`src/store.ts`](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/store.ts) (School data model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Portals"]
  node_auth["Sign-in<br/>[AuthPage.tsx]"]
  node_teacher["Teacher portal<br/>[TeacherPortal.tsx]"]
  node_parent["Parent portal<br/>[ParentPortal.tsx]"]
  node_promoter["Promoter portal<br/>[PromoterPortal.tsx]"]
end

subgraph group_school["School Operations"]
  node_app["School management<br/>[App.tsx]"]
  node_students["Student records<br/>[App.tsx]"]
  node_attendance["Attendance and check-in<br/>[App.tsx]"]
  node_homework["Homework<br/>[HomeworkPage.tsx]"]
  node_finance["Payments and expenses<br/>[App.tsx]"]
  node_reports["Reports and exports<br/>[App.tsx]"]
  node_users["User management"]
end

subgraph group_documents["Documents and Configuration"]
  node_cards["Identity cards"]
  node_reportcards["Report cards<br/>[ReportCardPage.tsx]"]
  node_certificates["Certificates"]
  node_photos["Photo upload<br/>[PhotoUpload.tsx]"]
  node_themes["Theme customization"]
end

subgraph group_foundation["Application Foundation"]
  node_permissions["Role permissions<br/>[permissions.ts]"]
  node_store["School data model<br/>[store.ts]"]
  node_database[("Local database and sessions<br/>[database.ts]")]
end

node_user(("School user"))

node_user -->|"signs in"| node_auth
node_app -->|"renders"| node_auth
node_app -->|"routes to"| node_teacher
node_app -->|"routes to"| node_parent
node_app -->|"routes to"| node_promoter
node_app -->|"uses"| node_homework
node_app -->|"uses"| node_cards
node_app -->|"uses"| node_reportcards
node_app -->|"uses"| node_certificates
node_app -->|"uses"| node_photos
node_app -->|"uses"| node_users
node_app -->|"uses"| node_themes
node_app -->|"saves data"| node_store
node_app -->|"checks access"| node_permissions
node_students -->|"generates cards"| node_cards
node_user -->|"records attendance"| node_attendance
node_user -->|"assigns work"| node_homework
node_user -->|"records payments"| node_finance
node_parent -->|"views reports"| node_reportcards
node_store -->|"persists data"| node_database
node_users -->|"displays roles"| node_permissions

click node_app "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/App.tsx"
click node_auth "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/AuthPage.tsx"
click node_teacher "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/TeacherPortal.tsx"
click node_parent "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/ParentPortal.tsx"
click node_promoter "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/PromoterPortal.tsx"
click node_students "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/App.tsx"
click node_attendance "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/App.tsx"
click node_homework "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/HomeworkPage.tsx"
click node_finance "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/App.tsx"
click node_reports "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/App.tsx"
click node_users "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/UserManagementPage.tsx"
click node_cards "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/CardGeneratorPage.tsx"
click node_reportcards "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/ReportCardPage.tsx"
click node_certificates "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/CertificatePage.tsx"
click node_photos "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/PhotoUpload.tsx"
click node_themes "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/ThemeCustomizer.tsx"
click node_permissions "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/permissions.ts"
click node_store "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/store.ts"
click node_database "https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/database.ts"

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_auth,node_teacher,node_parent,node_promoter,node_user toneBlue
class node_app,node_students,node_attendance,node_homework,node_finance,node_reports,node_users toneAmber
class node_cards,node_reportcards,node_certificates,node_photos,node_themes toneMint
class node_permissions,node_store,node_database toneRose
```

## Components

### Access and Portals

- [Sign-in](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/AuthPage.tsx): `src/AuthPage.tsx`
- [Teacher portal](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/TeacherPortal.tsx): `src/TeacherPortal.tsx`
- [Parent portal](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/ParentPortal.tsx): `src/ParentPortal.tsx`
- [Promoter portal](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/PromoterPortal.tsx): `src/PromoterPortal.tsx`

### School Operations

- [School management](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/App.tsx): `src/App.tsx`
- [Student records](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/App.tsx): `src/App.tsx`
- [Attendance and check-in](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/App.tsx): `src/App.tsx`
- [Homework](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/HomeworkPage.tsx): `src/HomeworkPage.tsx`
- [Payments and expenses](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/App.tsx): `src/App.tsx`
- [Reports and exports](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/App.tsx): `src/App.tsx`
- [User management](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/UserManagementPage.tsx): `src/UserManagementPage.tsx`

### Documents and Configuration

- [Identity cards](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/CardGeneratorPage.tsx): `src/CardGeneratorPage.tsx`
- [Report cards](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/ReportCardPage.tsx): `src/ReportCardPage.tsx`
- [Certificates](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/CertificatePage.tsx): `src/CertificatePage.tsx`
- [Photo upload](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/PhotoUpload.tsx): `src/PhotoUpload.tsx`
- [Theme customization](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/ThemeCustomizer.tsx): `src/ThemeCustomizer.tsx`

### Application Foundation

- [Role permissions](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/permissions.ts): `src/permissions.ts`
- [School data model](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/store.ts): `src/store.ts`
- [Local database and sessions](https://github.com/vitech-africa-ltd/kivu-stars-academy/blob/main/src/database.ts): `src/database.ts`

### Other components

- **School user**

## Connections

- School user → Sign-in: signs in (evidence: `README.md`)
- School management → Sign-in: renders (evidence: `src/App.tsx`)
- School management → Teacher portal: routes to (evidence: `src/App.tsx`)
- School management → Parent portal: routes to (evidence: `src/App.tsx`)
- School management → Promoter portal: routes to (evidence: `src/App.tsx`)
- School management → Homework: uses (evidence: `src/App.tsx`)
- School management → Identity cards: uses (evidence: `src/App.tsx`)
- School management → Report cards: uses (evidence: `src/App.tsx`)
- School management → Certificates: uses (evidence: `src/App.tsx`)
- School management → Photo upload: uses (evidence: `src/App.tsx`)
- School management → User management: uses (evidence: `src/App.tsx`)
- School management → Theme customization: uses (evidence: `src/App.tsx`)
- School management → School data model: saves data (evidence: `src/App.tsx`)
- School management → Role permissions: checks access (evidence: `README.md`)
- Student records → Identity cards: generates cards (evidence: `README.md`)
- School user → Attendance and check-in: records attendance (evidence: `README.md`)
- School user → Homework: assigns work (evidence: `README.md`)
- School user → Payments and expenses: records payments (evidence: `README.md`)
- Parent portal → Report cards: views reports (evidence: `README.md`)
- School data model → Local database and sessions: persists data (evidence: `src/database.ts`)
- User management → Role permissions: displays roles (evidence: `src/UserManagementPage.tsx`)
