# tariklob/nour-alqurane5 architecture

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

- Interactive diagram: https://gitdiagram.com/tariklob/nour-alqurane5
- Repository: https://github.com/tariklob/nour-alqurane5

## Overview

Qaïda Nourania is a Flask learning application for one teacher and a class of students. Students sign in, change temporary passwords, practise ten Qaïda lessons or Quran verses, and save attempts and mastered verses; the teacher creates accounts and reviews class and student progress. The backend, authentication, lesson logic, reporting, and persistence are concentrated in app.py, with Quran catalogue data in quran_data.py and browser views in templates. Quran text and recitation use documented external services; template implementation details were not sampled.

Main entry points: [`app.py`](https://github.com/tariklob/nour-alqurane5/blob/main/app.py) (Flask routes), [`templates/coran.html`](https://github.com/tariklob/nour-alqurane5/blob/main/templates/coran.html) (Quran learning interface), [`templates/student.html`](https://github.com/tariklob/nour-alqurane5/blob/main/templates/student.html) (Arabic practice and checking), [`templates/teacher.html`](https://github.com/tariklob/nour-alqurane5/blob/main/templates/teacher.html) (Teacher dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Student learning"]
  node_lessons["Ten Qaida lessons<br/>[app.py]"]
  node_practice["Arabic practice and checking<br/>[student.html]"]
  node_student_view["Student dashboard<br/>[student.html]"]
end

subgraph group_accounts["Accounts and oversight"]
  node_auth["Authentication and passwords<br/>[app.py]"]
  node_accounts_admin["Student account creation<br/>[app.py]"]
  node_teacher_dashboard["Class statistics<br/>[app.py]"]
  node_teacher_view["Teacher dashboard<br/>[teacher.html]"]
  node_student_detail["Student detail view<br/>[detail.html]"]
  node_password_view["Password change view"]
  node_login_view["Login view<br/>[login.html]"]
end

subgraph group_platform["Application and persistence"]
  node_flask["Flask routes<br/>[app.py]"]
  node_database[("Progress and user database<br/>[app.py]")]
end

subgraph group_quran["Quran content"]
  node_quran_view["Quran learning interface<br/>[coran.html]"]
  node_quran_progress["Verse progress API<br/>[app.py]"]
  node_quran_catalogue["Surah catalogue<br/>[quran_data.py]"]
end

node_student(("Student"))
node_teacher(("Teacher"))
node_quran_text_service{{"Quran text APIs"}}
node_recitation_service{{"Husary audio service"}}

node_student -->|"uses app"| node_flask
node_teacher -->|"uses app"| node_flask
node_flask -->|"routes login"| node_auth
node_flask -->|"renders"| node_login_view
node_auth -->|"reads credentials"| node_database
node_auth -->|"renders change"| node_password_view
node_flask -->|"serves lessons"| node_lessons
node_lessons -->|"provides exercises"| node_practice
node_practice -->|"records attempts"| node_database
node_flask -->|"renders dashboard"| node_student_view
node_flask -->|"renders Quran page"| node_quran_view
node_quran_view -->|"uses surah list"| node_quran_catalogue
node_quran_view -->|"saves verses"| node_quran_progress
node_quran_progress -->|"reads and writes"| node_database
node_quran_view -.->|"loads text"| node_quran_text_service
node_quran_view -.->|"loads recitation"| node_recitation_service
node_flask -->|"routes creation"| node_accounts_admin
node_accounts_admin -->|"creates account"| node_database
node_flask -->|"builds statistics"| node_teacher_dashboard
node_teacher_dashboard -->|"reads progress"| node_database
node_teacher_dashboard -->|"renders"| node_teacher_view
node_teacher_view -.->|"opens detail"| node_student_detail

click node_flask "https://github.com/tariklob/nour-alqurane5/blob/main/app.py"
click node_auth "https://github.com/tariklob/nour-alqurane5/blob/main/app.py"
click node_accounts_admin "https://github.com/tariklob/nour-alqurane5/blob/main/app.py"
click node_lessons "https://github.com/tariklob/nour-alqurane5/blob/main/app.py"
click node_practice "https://github.com/tariklob/nour-alqurane5/blob/main/templates/student.html"
click node_student_view "https://github.com/tariklob/nour-alqurane5/blob/main/templates/student.html"
click node_quran_view "https://github.com/tariklob/nour-alqurane5/blob/main/templates/coran.html"
click node_quran_progress "https://github.com/tariklob/nour-alqurane5/blob/main/app.py"
click node_quran_catalogue "https://github.com/tariklob/nour-alqurane5/blob/main/quran_data.py"
click node_teacher_dashboard "https://github.com/tariklob/nour-alqurane5/blob/main/app.py"
click node_teacher_view "https://github.com/tariklob/nour-alqurane5/blob/main/templates/teacher.html"
click node_student_detail "https://github.com/tariklob/nour-alqurane5/blob/main/templates/detail.html"
click node_password_view "https://github.com/tariklob/nour-alqurane5/blob/main/templates/change_password.html"
click node_login_view "https://github.com/tariklob/nour-alqurane5/blob/main/templates/login.html"
click node_database "https://github.com/tariklob/nour-alqurane5/blob/main/app.py"

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_lessons,node_practice,node_student_view toneBlue
class node_auth,node_accounts_admin,node_teacher_dashboard,node_teacher_view,node_student_detail,node_password_view,node_login_view toneAmber
class node_flask,node_database,node_quran_text_service toneMint
class node_quran_view,node_quran_progress,node_quran_catalogue toneRose
class node_student,node_teacher,node_recitation_service toneIndigo
```

## Components

### Student learning

- [Ten Qaida lessons](https://github.com/tariklob/nour-alqurane5/blob/main/app.py): `app.py`
- [Arabic practice and checking](https://github.com/tariklob/nour-alqurane5/blob/main/templates/student.html): `templates/student.html`
- [Student dashboard](https://github.com/tariklob/nour-alqurane5/blob/main/templates/student.html): `templates/student.html`

### Accounts and oversight

- [Authentication and passwords](https://github.com/tariklob/nour-alqurane5/blob/main/app.py): `app.py`
- [Student account creation](https://github.com/tariklob/nour-alqurane5/blob/main/app.py): `app.py`
- [Class statistics](https://github.com/tariklob/nour-alqurane5/blob/main/app.py): `app.py`
- [Teacher dashboard](https://github.com/tariklob/nour-alqurane5/blob/main/templates/teacher.html): `templates/teacher.html`
- [Student detail view](https://github.com/tariklob/nour-alqurane5/blob/main/templates/detail.html): `templates/detail.html`
- [Password change view](https://github.com/tariklob/nour-alqurane5/blob/main/templates/change_password.html): `templates/change_password.html`
- [Login view](https://github.com/tariklob/nour-alqurane5/blob/main/templates/login.html): `templates/login.html`

### Application and persistence

- [Flask routes](https://github.com/tariklob/nour-alqurane5/blob/main/app.py): `app.py`
- [Progress and user database](https://github.com/tariklob/nour-alqurane5/blob/main/app.py): `app.py`

### Quran content

- [Quran learning interface](https://github.com/tariklob/nour-alqurane5/blob/main/templates/coran.html): `templates/coran.html`
- [Verse progress API](https://github.com/tariklob/nour-alqurane5/blob/main/app.py): `app.py`
- [Surah catalogue](https://github.com/tariklob/nour-alqurane5/blob/main/quran_data.py): `quran_data.py`

### Other components

- **Student**
- **Teacher**
- **Quran text APIs**
- **Husary audio service**

## Connections

- Student → Flask routes: uses app (evidence: `README.md`)
- Teacher → Flask routes: uses app (evidence: `README.md`)
- Flask routes → Authentication and passwords: routes login (evidence: `app.py`)
- Flask routes → Login view: renders (evidence: `app.py`)
- Authentication and passwords → Progress and user database: reads credentials (evidence: `app.py`)
- Authentication and passwords → Password change view: renders change (evidence: `app.py`)
- Flask routes → Ten Qaida lessons: serves lessons (evidence: `README.md`)
- Ten Qaida lessons → Arabic practice and checking: provides exercises (evidence: `README.md`)
- Arabic practice and checking → Progress and user database: records attempts (evidence: `README.md`)
- Flask routes → Student dashboard: renders dashboard (evidence: `README.md`)
- Flask routes → Quran learning interface: renders Quran page (evidence: `app.py`)
- Quran learning interface → Surah catalogue: uses surah list
- Quran learning interface → Verse progress API: saves verses (evidence: `app.py`)
- Verse progress API → Progress and user database: reads and writes (evidence: `app.py`)
- Quran learning interface → Quran text APIs: loads text (evidence: `README.md`)
- Quran learning interface → Husary audio service: loads recitation (evidence: `README.md`)
- Flask routes → Student account creation: routes creation (evidence: `app.py`)
- Student account creation → Progress and user database: creates account (evidence: `app.py`)
- Flask routes → Class statistics: builds statistics (evidence: `app.py`)
- Class statistics → Progress and user database: reads progress (evidence: `app.py`)
- Class statistics → Teacher dashboard: renders (evidence: `app.py`)
- Teacher dashboard → Student detail view: opens detail (evidence: `README.md`)
