# usman-tech99/edupro architecture

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

- Interactive diagram: https://gitdiagram.com/usman-tech99/edupro
- Repository: https://github.com/usman-tech99/edupro

## Overview

EduPro has two visible operating modes: a documented standalone local-storage student manager and a Firebase-backed admin experience. The main supported admin workflow is an administrator signing in, then managing student records through the admin interface and Firestore; the standalone workflow manages records and renders dashboard, directory, and settings views in the browser. The sampled source confirms these boundaries, crash recovery, and optional email sending. Student-facing pages and several documented settings details are represented by their tree paths, but their implementation was not sampled.

Main entry points: [`app.js`](https://github.com/usman-tech99/edupro/blob/main/app.js) (Local Manager), [`admin.js`](https://github.com/usman-tech99/edupro/blob/main/admin.js) (Admin Management), [`login.js`](https://github.com/usman-tech99/edupro/blob/main/login.js) (Admin Login), [`student-login.html`](https://github.com/usman-tech99/edupro/blob/main/student-login.html) (Student Login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access"]
  node_admin_login["Admin Login<br/>[login.js]"]
  node_student_login["Student Login<br/>[student-login.html]"]
  node_student_portal["Student Portal"]
end

subgraph group_admin["Administration"]
  node_admin_page["Admin Portal<br/>[admin.html]"]
  node_admin_logic["Admin Management<br/>[admin.js]"]
  node_admin_exports["Print and CSV<br/>[admin.js]"]
end

subgraph group_standalone["Standalone Manager"]
  node_local_page["Local App<br/>[index.html]"]
  node_local_logic["Local Manager<br/>[app.js]"]
  node_local_store[("Browser Storage")]
  node_dashboard["Dashboard<br/>[app.js]"]
  node_directory["Student Directory<br/>[app.js]"]
  node_settings["Data Settings<br/>[index.html]"]
  node_recovery["Crash Recovery<br/>[app.js]"]
end

subgraph group_services["Data and Integrations"]
  node_firebase_config["Firebase Setup<br/>[firebase-config.js]"]
  node_firestore[("Firestore")]
  node_email_config["Email Settings<br/>[emailjs-config.js]"]
  node_emailjs["EmailJS"]
end

node_admin_user(("Administrator"))
node_student_user(("Student"))

node_admin_user -->|"signs in"| node_admin_login
node_admin_login -->|"redirects on success"| node_admin_page
node_admin_page -.->|"runs"| node_admin_logic
node_admin_logic -->|"redirects if unauthenticated"| node_admin_login
node_admin_logic -->|"reads and writes"| node_firestore
node_firebase_config -->|"initializes"| node_firestore
node_admin_logic -->|"sends notifications"| node_emailjs
node_email_config -.->|"provides settings"| node_admin_logic
node_admin_logic -->|"exports records"| node_admin_exports
node_student_user -.->|"opens"| node_student_login
node_student_login -.->|"continues to"| node_student_portal
node_local_page -.->|"runs"| node_local_logic
node_local_logic -->|"persists records"| node_local_store
node_local_logic -->|"renders"| node_dashboard
node_local_logic -->|"renders and filters"| node_directory
node_local_logic -->|"manages local data"| node_settings
node_local_logic -->|"sets up and displays"| node_recovery

click node_admin_login "https://github.com/usman-tech99/edupro/blob/main/login.js"
click node_admin_page "https://github.com/usman-tech99/edupro/blob/main/admin.html"
click node_admin_logic "https://github.com/usman-tech99/edupro/blob/main/admin.js"
click node_student_login "https://github.com/usman-tech99/edupro/blob/main/student-login.html"
click node_student_portal "https://github.com/usman-tech99/edupro/blob/main/student-portal.html"
click node_local_page "https://github.com/usman-tech99/edupro/blob/main/index.html"
click node_local_logic "https://github.com/usman-tech99/edupro/blob/main/app.js"
click node_dashboard "https://github.com/usman-tech99/edupro/blob/main/app.js"
click node_directory "https://github.com/usman-tech99/edupro/blob/main/app.js"
click node_settings "https://github.com/usman-tech99/edupro/blob/main/index.html"
click node_recovery "https://github.com/usman-tech99/edupro/blob/main/app.js"
click node_firebase_config "https://github.com/usman-tech99/edupro/blob/main/firebase-config.js"
click node_email_config "https://github.com/usman-tech99/edupro/blob/main/emailjs-config.js"
click node_admin_exports "https://github.com/usman-tech99/edupro/blob/main/admin.js"

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_admin_login,node_student_login,node_student_portal toneBlue
class node_admin_page,node_admin_logic,node_admin_exports toneAmber
class node_local_page,node_local_logic,node_local_store,node_dashboard,node_directory,node_settings,node_recovery toneMint
class node_firebase_config,node_firestore,node_email_config,node_emailjs toneRose
class node_admin_user,node_student_user toneIndigo
```

## Components

### Access

- [Admin Login](https://github.com/usman-tech99/edupro/blob/main/login.js): `login.js`
- [Student Login](https://github.com/usman-tech99/edupro/blob/main/student-login.html): `student-login.html`
- [Student Portal](https://github.com/usman-tech99/edupro/blob/main/student-portal.html): `student-portal.html`

### Administration

- [Admin Portal](https://github.com/usman-tech99/edupro/blob/main/admin.html): `admin.html`
- [Admin Management](https://github.com/usman-tech99/edupro/blob/main/admin.js): `admin.js`
- [Print and CSV](https://github.com/usman-tech99/edupro/blob/main/admin.js): `admin.js`

### Standalone Manager

- [Local App](https://github.com/usman-tech99/edupro/blob/main/index.html): `index.html`
- [Local Manager](https://github.com/usman-tech99/edupro/blob/main/app.js): `app.js`
- **Browser Storage**
- [Dashboard](https://github.com/usman-tech99/edupro/blob/main/app.js): `app.js`
- [Student Directory](https://github.com/usman-tech99/edupro/blob/main/app.js): `app.js`
- [Data Settings](https://github.com/usman-tech99/edupro/blob/main/index.html): `index.html`
- [Crash Recovery](https://github.com/usman-tech99/edupro/blob/main/app.js): `app.js`

### Data and Integrations

- [Firebase Setup](https://github.com/usman-tech99/edupro/blob/main/firebase-config.js): `firebase-config.js`
- **Firestore**
- [Email Settings](https://github.com/usman-tech99/edupro/blob/main/emailjs-config.js): `emailjs-config.js`
- **EmailJS**

### Other components

- **Administrator**
- **Student**

## Connections

- Administrator → Admin Login: signs in (evidence: `login.js`)
- Admin Login → Admin Portal: redirects on success (evidence: `login.js`)
- Admin Portal → Admin Management: runs
- Admin Management → Admin Login: redirects if unauthenticated (evidence: `admin.js`)
- Admin Management → Firestore: reads and writes (evidence: `admin.js`)
- Firebase Setup → Firestore: initializes (evidence: `firebase-config.js`)
- Admin Management → EmailJS: sends notifications (evidence: `admin.js`)
- Email Settings → Admin Management: provides settings
- Admin Management → Print and CSV: exports records (evidence: `admin.js`)
- Student → Student Login: opens
- Student Login → Student Portal: continues to
- Local App → Local Manager: runs
- Local Manager → Browser Storage: persists records (evidence: `README.md`)
- Local Manager → Dashboard: renders (evidence: `app.js`)
- Local Manager → Student Directory: renders and filters (evidence: `app.js`)
- Local Manager → Data Settings: manages local data (evidence: `README.md`)
- Local Manager → Crash Recovery: sets up and displays (evidence: `app.js`)
