# tariklob/nour architecture

> Architecture diagram of the GitHub repository tariklob/nour, 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
- Repository: https://github.com/tariklob/nour

## Overview

Qaïda Nourania is a Flask learning platform for one teacher and one class. Students sign in with shared accounts, study Qaïda lessons, track Qur’an verse progress, and complete Al Madaniyya video-and-quiz chapters; teachers create student accounts and review progress across these subjects. The application is concentrated in app.py, with lesson and surah data in separate modules and HTML pages in templates/. The excerpts show Qur’an progress persistence and teacher reporting, but not every route or template interaction; edges for documented but unsampled capabilities cite the README.

Main entry points: [`app.py`](https://github.com/tariklob/nour/blob/main/app.py) (Flask application), [`templates/coran.html`](https://github.com/tariklob/nour/blob/main/templates/coran.html) (Qur’an learning), [`templates/madania_lesson.html`](https://github.com/tariklob/nour/blob/main/templates/madania_lesson.html) (Chapter quiz), [`templates/madania.html`](https://github.com/tariklob/nour/blob/main/templates/madania.html) (Al Madaniyya chapters)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Accounts and access"]
  node_flask_app["Flask application<br/>[app.py]"]
  node_accounts["Accounts and login<br/>[app.py]"]
end

subgraph group_learning["Student learning"]
  node_student_dashboard["Student dashboard<br/>[app.py]"]
  node_qaida_learning["Qaïda lessons<br/>[student.html]"]
  node_quran_learning["Qur’an learning<br/>[coran.html]"]
  node_madania_learning["Al Madaniyya chapters<br/>[madania.html]"]
  node_madania_quiz["Chapter quiz"]
end

subgraph group_tracking["Progress tracking"]
  node_teacher_dashboard["Teacher dashboard<br/>[app.py]"]
  node_progress_reporting["Progress summaries<br/>[app.py]"]
  node_progress_store[("Progress records<br/>[app.py]")]
end

subgraph group_content["Learning content"]
  node_quran_data["Surah catalogue<br/>[quran_data.py]"]
  node_madania_data["Chapter and quiz data<br/>[madania_data.py]"]
end

node_student(("Student"))
node_teacher(("Teacher"))
node_quran_services["Qur’an text and audio"]
node_youtube["YouTube playlist"]

node_student -->|"signs in"| node_accounts
node_teacher -->|"signs in"| node_accounts
node_accounts -->|"routes requests"| node_flask_app
node_flask_app -->|"serves dashboard"| node_student_dashboard
node_student_dashboard -->|"opens lessons"| node_qaida_learning
node_student_dashboard -->|"opens Qur’an"| node_quran_learning
node_student_dashboard -->|"opens chapters"| node_madania_learning
node_madania_learning -->|"opens chapter"| node_madania_quiz
node_flask_app -->|"loads surahs"| node_quran_data
node_flask_app -->|"loads lessons"| node_madania_data
node_quran_learning -.->|"uses text and audio"| node_quran_services
node_madania_quiz -.->|"shows playlist video"| node_youtube
node_quran_learning -->|"saves verse progress"| node_flask_app
node_madania_quiz -->|"submits quiz"| node_flask_app
node_flask_app -->|"reads and writes"| node_progress_store
node_teacher -->|"reviews class"| node_teacher_dashboard
node_teacher_dashboard -->|"shows summaries"| node_progress_reporting
node_progress_reporting -->|"reads records"| node_progress_store
node_teacher_dashboard -->|"creates students"| node_accounts

click node_flask_app "https://github.com/tariklob/nour/blob/main/app.py"
click node_accounts "https://github.com/tariklob/nour/blob/main/app.py"
click node_student_dashboard "https://github.com/tariklob/nour/blob/main/app.py"
click node_qaida_learning "https://github.com/tariklob/nour/blob/main/templates/student.html"
click node_quran_learning "https://github.com/tariklob/nour/blob/main/templates/coran.html"
click node_madania_learning "https://github.com/tariklob/nour/blob/main/templates/madania.html"
click node_madania_quiz "https://github.com/tariklob/nour/blob/main/templates/madania_lesson.html"
click node_teacher_dashboard "https://github.com/tariklob/nour/blob/main/app.py"
click node_progress_reporting "https://github.com/tariklob/nour/blob/main/app.py"
click node_progress_store "https://github.com/tariklob/nour/blob/main/app.py"
click node_quran_data "https://github.com/tariklob/nour/blob/main/quran_data.py"
click node_madania_data "https://github.com/tariklob/nour/blob/main/madania_data.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_flask_app,node_accounts toneBlue
class node_student_dashboard,node_qaida_learning,node_quran_learning,node_madania_learning,node_madania_quiz toneAmber
class node_teacher_dashboard,node_progress_reporting,node_progress_store toneMint
class node_quran_data,node_madania_data toneRose
class node_student,node_teacher,node_quran_services,node_youtube toneIndigo
```

## Components

### Accounts and access

- [Flask application](https://github.com/tariklob/nour/blob/main/app.py): `app.py`
- [Accounts and login](https://github.com/tariklob/nour/blob/main/app.py): `app.py`

### Student learning

- [Student dashboard](https://github.com/tariklob/nour/blob/main/app.py): `app.py`
- [Qaïda lessons](https://github.com/tariklob/nour/blob/main/templates/student.html): `templates/student.html`
- [Qur’an learning](https://github.com/tariklob/nour/blob/main/templates/coran.html): `templates/coran.html`
- [Al Madaniyya chapters](https://github.com/tariklob/nour/blob/main/templates/madania.html): `templates/madania.html`
- [Chapter quiz](https://github.com/tariklob/nour/blob/main/templates/madania_lesson.html): `templates/madania_lesson.html`

### Progress tracking

- [Teacher dashboard](https://github.com/tariklob/nour/blob/main/app.py): `app.py`
- [Progress summaries](https://github.com/tariklob/nour/blob/main/app.py): `app.py`
- [Progress records](https://github.com/tariklob/nour/blob/main/app.py): `app.py`

### Learning content

- [Surah catalogue](https://github.com/tariklob/nour/blob/main/quran_data.py): `quran_data.py`
- [Chapter and quiz data](https://github.com/tariklob/nour/blob/main/madania_data.py): `madania_data.py`

### Other components

- **Student**
- **Teacher**
- **Qur’an text and audio**
- **YouTube playlist**

## Connections

- Student → Accounts and login: signs in (evidence: `README.md`)
- Teacher → Accounts and login: signs in (evidence: `README.md`)
- Accounts and login → Flask application: routes requests (evidence: `app.py`)
- Flask application → Student dashboard: serves dashboard (evidence: `app.py`)
- Student dashboard → Qaïda lessons: opens lessons (evidence: `README.md`)
- Student dashboard → Qur’an learning: opens Qur’an (evidence: `app.py`)
- Student dashboard → Al Madaniyya chapters: opens chapters (evidence: `README.md`)
- Al Madaniyya chapters → Chapter quiz: opens chapter (evidence: `README.md`)
- Flask application → Surah catalogue: loads surahs (evidence: `app.py`)
- Flask application → Chapter and quiz data: loads lessons (evidence: `app.py`)
- Qur’an learning → Qur’an text and audio: uses text and audio (evidence: `README.md`)
- Chapter quiz → YouTube playlist: shows playlist video (evidence: `README.md`)
- Qur’an learning → Flask application: saves verse progress (evidence: `app.py`)
- Chapter quiz → Flask application: submits quiz (evidence: `app.py`)
- Flask application → Progress records: reads and writes (evidence: `app.py`)
- Teacher → Teacher dashboard: reviews class (evidence: `README.md`)
- Teacher dashboard → Progress summaries: shows summaries (evidence: `app.py`)
- Progress summaries → Progress records: reads records (evidence: `app.py`)
- Teacher dashboard → Accounts and login: creates students (evidence: `README.md`)
