# yitbarek-git/aplus-academy architecture

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

- Interactive diagram: https://gitdiagram.com/yitbarek-git/aplus-academy
- Repository: https://github.com/yitbarek-git/aplus-academy

## Overview

Aplus Academy is a bilingual academy website for Ethiopian university students, offering course and learning-resource previews alongside paid membership registration. The primary flow is to review the offering, submit student and payment-proof details, then check registration status; administrators review submissions and manage them. The excerpts show the page composition and server-side registration, status, and admin capabilities, but omit much of the request-handling and client network code, so those links are marked unverified where useful.

Main entry points: [`src/App.tsx`](https://github.com/yitbarek-git/aplus-academy/blob/main/src/App.tsx) (Page composition), [`src/translations.ts`](https://github.com/yitbarek-git/aplus-academy/blob/main/src/translations.ts) (Amharic and English text), [`src/components/StatusChecker.tsx`](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/StatusChecker.tsx) (Status checker), [`server.ts`](https://github.com/yitbarek-git/aplus-academy/blob/main/server.ts) (API routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Website shell"]
  node_app["Page composition<br/>[App.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer links<br/>[Footer.tsx]"]
end

subgraph group_learning["Learning offering"]
  node_hero["Academy introduction<br/>[Hero.tsx]"]
  node_how["How it works<br/>[HowItWorks.tsx]"]
  node_membership_offer["Membership offer"]
  node_courses["Course catalog<br/>[Courses.tsx]"]
  node_resources["Learning resources<br/>[Resources.tsx]"]
  node_about["About academy<br/>[AboutSection.tsx]"]
  node_contact["Contact information<br/>[ContactSection.tsx]"]
end

subgraph group_membership["Membership journey"]
  node_registration["Registration form"]
  node_status["Status checker<br/>[StatusChecker.tsx]"]
  node_terms["Terms and privacy<br/>[TermsModal.tsx]"]
end

subgraph group_operations["Registration operations"]
  node_admin_ui["Owner review panel<br/>[AdminModal.tsx]"]
  node_api["API routes<br/>[server.ts]"]
  node_database[("Registration records<br/>[db.ts]")]
  node_proofs[("Payment proof files")]
end

subgraph group_shared["Shared services"]
  node_translations["Amharic and English text<br/>[translations.ts]"]
end

node_student(("Student"))
node_owner(("Academy owner"))
node_telegram["Telegram member hub"]

node_student -->|"opens"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_how
node_app -->|"renders"| node_membership_offer
node_app -->|"renders"| node_courses
node_app -->|"renders"| node_resources
node_app -->|"renders"| node_about
node_app -->|"renders"| node_registration
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_status
node_app -->|"renders"| node_admin_ui
node_app -->|"renders"| node_terms
node_app -->|"loads language"| node_translations
node_hero -->|"uses text"| node_translations
node_how -->|"uses text"| node_translations
node_membership_offer -->|"uses text"| node_translations
node_courses -->|"uses text"| node_translations
node_resources -->|"uses text"| node_translations
node_about -->|"uses text"| node_translations
node_contact -->|"uses text"| node_translations
node_navbar -->|"uses text"| node_translations
node_footer -->|"uses text"| node_translations
node_registration -->|"uses text"| node_translations
node_status -->|"uses text"| node_translations
node_terms -->|"uses text"| node_translations
node_registration -.->|"submits registration"| node_api
node_status -.->|"checks status"| node_api
node_admin_ui -.->|"manages submissions"| node_api
node_api -->|"reads and writes"| node_database
node_api -.->|"stores and deletes"| node_proofs
node_owner -->|"reviews"| node_admin_ui
node_student -->|"registers"| node_registration
node_student -->|"checks progress"| node_status
node_status -.->|"offers invite"| node_telegram

click node_app "https://github.com/yitbarek-git/aplus-academy/blob/main/src/App.tsx"
click node_navbar "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/Navbar.tsx"
click node_hero "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/Hero.tsx"
click node_how "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/HowItWorks.tsx"
click node_membership_offer "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/MembershipOffer.tsx"
click node_courses "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/Courses.tsx"
click node_resources "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/Resources.tsx"
click node_about "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/AboutSection.tsx"
click node_contact "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/ContactSection.tsx"
click node_footer "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/Footer.tsx"
click node_registration "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/RegistrationForm.tsx"
click node_status "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/StatusChecker.tsx"
click node_terms "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/TermsModal.tsx"
click node_admin_ui "https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/AdminModal.tsx"
click node_api "https://github.com/yitbarek-git/aplus-academy/blob/main/server.ts"
click node_database "https://github.com/yitbarek-git/aplus-academy/blob/main/server/db.ts"
click node_proofs "https://github.com/yitbarek-git/aplus-academy/tree/main/uploads/proofs"
click node_translations "https://github.com/yitbarek-git/aplus-academy/blob/main/src/translations.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_app,node_navbar,node_footer toneBlue
class node_hero,node_how,node_membership_offer,node_courses,node_resources,node_about,node_contact toneAmber
class node_registration,node_status,node_terms toneMint
class node_admin_ui,node_api,node_database,node_proofs toneRose
class node_translations,node_student,node_owner,node_telegram toneIndigo
```

## Components

### Website shell

- [Page composition](https://github.com/yitbarek-git/aplus-academy/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Footer links](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Learning offering

- [Academy introduction](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [How it works](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/HowItWorks.tsx): `src/components/HowItWorks.tsx`
- [Membership offer](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/MembershipOffer.tsx): `src/components/MembershipOffer.tsx`
- [Course catalog](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/Courses.tsx): `src/components/Courses.tsx`
- [Learning resources](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/Resources.tsx): `src/components/Resources.tsx`
- [About academy](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/AboutSection.tsx): `src/components/AboutSection.tsx`
- [Contact information](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/ContactSection.tsx): `src/components/ContactSection.tsx`

### Membership journey

- [Registration form](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/RegistrationForm.tsx): `src/components/RegistrationForm.tsx`
- [Status checker](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/StatusChecker.tsx): `src/components/StatusChecker.tsx`
- [Terms and privacy](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/TermsModal.tsx): `src/components/TermsModal.tsx`

### Registration operations

- [Owner review panel](https://github.com/yitbarek-git/aplus-academy/blob/main/src/components/AdminModal.tsx): `src/components/AdminModal.tsx`
- [API routes](https://github.com/yitbarek-git/aplus-academy/blob/main/server.ts): `server.ts`
- [Registration records](https://github.com/yitbarek-git/aplus-academy/blob/main/server/db.ts): `server/db.ts`
- [Payment proof files](https://github.com/yitbarek-git/aplus-academy/tree/main/uploads/proofs): `uploads/proofs`

### Shared services

- [Amharic and English text](https://github.com/yitbarek-git/aplus-academy/blob/main/src/translations.ts): `src/translations.ts`

### Other components

- **Student**
- **Academy owner**
- **Telegram member hub**

## Connections

- Student → Page composition: opens
- Page composition → Navigation: renders (evidence: `src/App.tsx`)
- Page composition → Academy introduction: renders (evidence: `src/App.tsx`)
- Page composition → How it works: renders (evidence: `src/App.tsx`)
- Page composition → Membership offer: renders (evidence: `src/App.tsx`)
- Page composition → Course catalog: renders (evidence: `src/App.tsx`)
- Page composition → Learning resources: renders (evidence: `src/App.tsx`)
- Page composition → About academy: renders (evidence: `src/App.tsx`)
- Page composition → Registration form: renders (evidence: `src/App.tsx`)
- Page composition → Contact information: renders (evidence: `src/App.tsx`)
- Page composition → Footer links: renders (evidence: `src/App.tsx`)
- Page composition → Status checker: renders (evidence: `src/App.tsx`)
- Page composition → Owner review panel: renders (evidence: `src/App.tsx`)
- Page composition → Terms and privacy: renders (evidence: `src/App.tsx`)
- Page composition → Amharic and English text: loads language (evidence: `src/App.tsx`)
- Academy introduction → Amharic and English text: uses text (evidence: `src/components/Hero.tsx`)
- How it works → Amharic and English text: uses text (evidence: `src/components/HowItWorks.tsx`)
- Membership offer → Amharic and English text: uses text (evidence: `src/components/MembershipOffer.tsx`)
- Course catalog → Amharic and English text: uses text (evidence: `src/components/Courses.tsx`)
- Learning resources → Amharic and English text: uses text (evidence: `src/components/Resources.tsx`)
- About academy → Amharic and English text: uses text (evidence: `src/components/AboutSection.tsx`)
- Contact information → Amharic and English text: uses text (evidence: `src/components/ContactSection.tsx`)
- Navigation → Amharic and English text: uses text (evidence: `src/components/Navbar.tsx`)
- Footer links → Amharic and English text: uses text (evidence: `src/components/Footer.tsx`)
- Registration form → Amharic and English text: uses text (evidence: `src/components/RegistrationForm.tsx`)
- Status checker → Amharic and English text: uses text (evidence: `src/components/StatusChecker.tsx`)
- Terms and privacy → Amharic and English text: uses text (evidence: `src/components/TermsModal.tsx`)
- Registration form → API routes: submits registration
- Status checker → API routes: checks status
- Owner review panel → API routes: manages submissions
- API routes → Registration records: reads and writes (evidence: `server.ts`)
- API routes → Payment proof files: stores and deletes
- Academy owner → Owner review panel: reviews
- Student → Registration form: registers
- Student → Status checker: checks progress
- Status checker → Telegram member hub: offers invite
