# vishwanatha01/edunexa architecture

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

- Interactive diagram: https://gitdiagram.com/vishwanatha01/edunexa
- Repository: https://github.com/vishwanatha01/edunexa

## Overview

EduNexa is a PHP/MySQL learning management platform. Learners discover courses, enroll, consume lessons and resources, complete quizzes, track progress, and earn certificates; teachers create courses and sessions, while administrators manage users and platform content. The map also preserves community, messaging, research, library, settings, and AI-assistant capabilities documented by the README. Sampled sources establish several page-to-database and helper relationships; unsampled features are included with conservative, undocumented links omitted.

Main entry points: [`config/config.php`](https://github.com/vishwanatha01/edunexa/blob/main/config/config.php) (MySQL database), [`teacher/live_sessions.php`](https://github.com/vishwanatha01/edunexa/blob/main/teacher/live_sessions.php) (Session management), [`teacher/course_edit.php`](https://github.com/vishwanatha01/edunexa/blob/main/teacher/course_edit.php) (Course authoring), [`research.php`](https://github.com/vishwanatha01/edunexa/blob/main/research.php) (Research hub)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning and assessment"]
  node_home["Course discovery<br/>[index.php]"]
  node_catalog["Course catalog<br/>[courses.php]"]
  node_course_detail["Course detail<br/>[course.php]"]
  node_lesson["Lessons and video<br/>[lesson.php]"]
  node_library["Student library<br/>[library.php]"]
  node_quiz["Quizzes<br/>[quiz.php]"]
  node_quiz_submit["Quiz submission<br/>[submit_quiz.php]"]
  node_progress["Progress tracking<br/>[progress.php]"]
  node_certificates["Certificates"]
  node_cert_upload["Certificate uploads"]
end

subgraph group_teaching["Teaching and operations"]
  node_teacher["Teacher studio<br/>[dashboard.php]"]
  node_course_editor["Course authoring<br/>[course_edit.php]"]
  node_lesson_editor["Lesson authoring<br/>[lesson_edit.php]"]
  node_resource_editor["Resource authoring<br/>[resource_edit.php]"]
  node_live_sessions["Session management<br/>[live_sessions.php]"]
  node_live_room["Live classroom<br/>[room.php]"]
  node_live_index["Live class listing<br/>[index.php]"]
  node_admin["Admin control<br/>[dashboard.php]"]
end

subgraph group_engagement["Community and research"]
  node_community["Community<br/>[community.php]"]
  node_messages["Private messaging<br/>[chat.php]"]
  node_chat_api["Live chat API<br/>[chat.php]"]
  node_research["Research hub<br/>[research.php]"]
  node_reader["PDF reader<br/>[reader.php]"]
  node_assistant["AI assistant<br/>[chatbot.php]"]
  node_wishlist["Wishlist<br/>[wishlist.php]"]
end

subgraph group_platform["Platform services"]
  node_auth["Accounts and profiles<br/>[login.php]"]
  node_dashboard["Learner dashboard<br/>[dashboard.php]"]
  node_settings["User settings<br/>[settings.php]"]
  node_database[("MySQL database<br/>[config.php]")]
  node_functions["Shared helpers<br/>[functions.php]"]
end

node_learner(("Learner"))
node_google_scholar["Google Scholar"]
node_jitsi["Jitsi Meet"]
node_google_meet["Google Meet"]

node_learner -->|"browses"| node_home
node_home -->|"queries courses"| node_database
node_home -->|"opens catalog"| node_catalog
node_catalog -.->|"opens course"| node_course_detail
node_course_detail -->|"reads course"| node_database
node_course_detail -.->|"opens lessons"| node_lesson
node_lesson -.->|"reads lessons"| node_database
node_learner -.->|"explores resources"| node_library
node_learner -.->|"takes quiz"| node_quiz
node_quiz -.->|"submits answers"| node_quiz_submit
node_quiz_submit -.->|"stores attempt"| node_database
node_learner -.->|"checks progress"| node_progress
node_learner -.->|"views awards"| node_certificates
node_cert_upload -->|"stores certificate"| node_database
node_teacher -.->|"creates courses"| node_course_editor
node_course_editor -->|"saves course"| node_database
node_course_editor -->|"links lesson editing"| node_lesson_editor
node_course_editor -->|"links resource editing"| node_resource_editor
node_lesson_editor -.->|"stores lessons"| node_database
node_resource_editor -.->|"stores resources"| node_database
node_teacher -.->|"manages sessions"| node_live_sessions
node_live_sessions -->|"stores sessions"| node_database
node_live_sessions -->|"links room"| node_live_room
node_live_sessions -->|"opens creation"| node_google_meet
node_live_sessions -->|"creates room URL"| node_jitsi
node_live_index -.->|"offers room entry"| node_live_room
node_admin -->|"queries metrics"| node_database
node_community -->|"stores discussions"| node_database
node_messages -->|"stores messages"| node_database
node_live_room -.->|"uses chat"| node_chat_api
node_chat_api -->|"reads and writes"| node_database
node_research -->|"launches search"| node_google_scholar
node_research -->|"saves papers"| node_database
node_research -.->|"opens PDF reader"| node_reader
node_learner -.->|"asks guidance"| node_assistant
node_learner -.->|"saves courses"| node_wishlist
node_auth -->|"uses connection"| node_database
node_auth -->|"loads helpers"| node_functions
node_dashboard -->|"loads learning data"| node_database
node_settings -->|"stores preferences"| node_database

click node_home "https://github.com/vishwanatha01/edunexa/blob/main/index.php"
click node_catalog "https://github.com/vishwanatha01/edunexa/blob/main/courses.php"
click node_course_detail "https://github.com/vishwanatha01/edunexa/blob/main/course.php"
click node_lesson "https://github.com/vishwanatha01/edunexa/blob/main/lesson.php"
click node_library "https://github.com/vishwanatha01/edunexa/blob/main/library.php"
click node_quiz "https://github.com/vishwanatha01/edunexa/blob/main/quiz.php"
click node_quiz_submit "https://github.com/vishwanatha01/edunexa/blob/main/submit_quiz.php"
click node_progress "https://github.com/vishwanatha01/edunexa/blob/main/progress.php"
click node_certificates "https://github.com/vishwanatha01/edunexa/blob/main/my_certificates.php"
click node_cert_upload "https://github.com/vishwanatha01/edunexa/blob/main/certificate_upload.php"
click node_teacher "https://github.com/vishwanatha01/edunexa/blob/main/teacher/dashboard.php"
click node_course_editor "https://github.com/vishwanatha01/edunexa/blob/main/teacher/course_edit.php"
click node_lesson_editor "https://github.com/vishwanatha01/edunexa/blob/main/teacher/lesson_edit.php"
click node_resource_editor "https://github.com/vishwanatha01/edunexa/blob/main/teacher/resource_edit.php"
click node_live_sessions "https://github.com/vishwanatha01/edunexa/blob/main/teacher/live_sessions.php"
click node_live_room "https://github.com/vishwanatha01/edunexa/blob/main/live/room.php"
click node_live_index "https://github.com/vishwanatha01/edunexa/blob/main/live/index.php"
click node_admin "https://github.com/vishwanatha01/edunexa/blob/main/admin/dashboard.php"
click node_community "https://github.com/vishwanatha01/edunexa/blob/main/community.php"
click node_messages "https://github.com/vishwanatha01/edunexa/blob/main/chat.php"
click node_chat_api "https://github.com/vishwanatha01/edunexa/blob/main/api/chat.php"
click node_research "https://github.com/vishwanatha01/edunexa/blob/main/research.php"
click node_reader "https://github.com/vishwanatha01/edunexa/blob/main/research/reader.php"
click node_assistant "https://github.com/vishwanatha01/edunexa/blob/main/chatbot.php"
click node_wishlist "https://github.com/vishwanatha01/edunexa/blob/main/wishlist.php"
click node_auth "https://github.com/vishwanatha01/edunexa/blob/main/login.php"
click node_dashboard "https://github.com/vishwanatha01/edunexa/blob/main/dashboard.php"
click node_settings "https://github.com/vishwanatha01/edunexa/blob/main/settings.php"
click node_database "https://github.com/vishwanatha01/edunexa/blob/main/config/config.php"
click node_functions "https://github.com/vishwanatha01/edunexa/blob/main/includes/functions.php"

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_home,node_catalog,node_course_detail,node_lesson,node_library,node_quiz,node_quiz_submit,node_progress,node_certificates,node_cert_upload toneBlue
class node_teacher,node_course_editor,node_lesson_editor,node_resource_editor,node_live_sessions,node_live_room,node_live_index,node_admin toneAmber
class node_community,node_messages,node_chat_api,node_research,node_reader,node_assistant,node_wishlist toneMint
class node_auth,node_dashboard,node_settings,node_database,node_functions toneRose
class node_learner,node_google_scholar,node_jitsi,node_google_meet toneIndigo
```

## Components

### Learning and assessment

- [Course discovery](https://github.com/vishwanatha01/edunexa/blob/main/index.php): `index.php`
- [Course catalog](https://github.com/vishwanatha01/edunexa/blob/main/courses.php): `courses.php`
- [Course detail](https://github.com/vishwanatha01/edunexa/blob/main/course.php): `course.php`
- [Lessons and video](https://github.com/vishwanatha01/edunexa/blob/main/lesson.php): `lesson.php`
- [Student library](https://github.com/vishwanatha01/edunexa/blob/main/library.php): `library.php`
- [Quizzes](https://github.com/vishwanatha01/edunexa/blob/main/quiz.php): `quiz.php`
- [Quiz submission](https://github.com/vishwanatha01/edunexa/blob/main/submit_quiz.php): `submit_quiz.php`
- [Progress tracking](https://github.com/vishwanatha01/edunexa/blob/main/progress.php): `progress.php`
- [Certificates](https://github.com/vishwanatha01/edunexa/blob/main/my_certificates.php): `my_certificates.php`
- [Certificate uploads](https://github.com/vishwanatha01/edunexa/blob/main/certificate_upload.php): `certificate_upload.php`

### Teaching and operations

- [Teacher studio](https://github.com/vishwanatha01/edunexa/blob/main/teacher/dashboard.php): `teacher/dashboard.php`
- [Course authoring](https://github.com/vishwanatha01/edunexa/blob/main/teacher/course_edit.php): `teacher/course_edit.php`
- [Lesson authoring](https://github.com/vishwanatha01/edunexa/blob/main/teacher/lesson_edit.php): `teacher/lesson_edit.php`
- [Resource authoring](https://github.com/vishwanatha01/edunexa/blob/main/teacher/resource_edit.php): `teacher/resource_edit.php`
- [Session management](https://github.com/vishwanatha01/edunexa/blob/main/teacher/live_sessions.php): `teacher/live_sessions.php`
- [Live classroom](https://github.com/vishwanatha01/edunexa/blob/main/live/room.php): `live/room.php`
- [Live class listing](https://github.com/vishwanatha01/edunexa/blob/main/live/index.php): `live/index.php`
- [Admin control](https://github.com/vishwanatha01/edunexa/blob/main/admin/dashboard.php): `admin/dashboard.php`

### Community and research

- [Community](https://github.com/vishwanatha01/edunexa/blob/main/community.php): `community.php`
- [Private messaging](https://github.com/vishwanatha01/edunexa/blob/main/chat.php): `chat.php`
- [Live chat API](https://github.com/vishwanatha01/edunexa/blob/main/api/chat.php): `api/chat.php`
- [Research hub](https://github.com/vishwanatha01/edunexa/blob/main/research.php): `research.php`
- [PDF reader](https://github.com/vishwanatha01/edunexa/blob/main/research/reader.php): `research/reader.php`
- [AI assistant](https://github.com/vishwanatha01/edunexa/blob/main/chatbot.php): `chatbot.php`
- [Wishlist](https://github.com/vishwanatha01/edunexa/blob/main/wishlist.php): `wishlist.php`

### Platform services

- [Accounts and profiles](https://github.com/vishwanatha01/edunexa/blob/main/login.php): `login.php`
- [Learner dashboard](https://github.com/vishwanatha01/edunexa/blob/main/dashboard.php): `dashboard.php`
- [User settings](https://github.com/vishwanatha01/edunexa/blob/main/settings.php): `settings.php`
- [MySQL database](https://github.com/vishwanatha01/edunexa/blob/main/config/config.php): `config/config.php`
- [Shared helpers](https://github.com/vishwanatha01/edunexa/blob/main/includes/functions.php): `includes/functions.php`

### Other components

- **Learner**
- **Google Scholar**
- **Jitsi Meet**
- **Google Meet**

## Connections

- Learner → Course discovery: browses (evidence: `index.php`)
- Course discovery → MySQL database: queries courses (evidence: `index.php`)
- Course discovery → Course catalog: opens catalog (evidence: `index.php`)
- Course catalog → Course detail: opens course
- Course detail → MySQL database: reads course (evidence: `course.php`)
- Course detail → Lessons and video: opens lessons
- Lessons and video → MySQL database: reads lessons (evidence: `lesson.php`)
- Learner → Student library: explores resources
- Learner → Quizzes: takes quiz
- Quizzes → Quiz submission: submits answers
- Quiz submission → MySQL database: stores attempt
- Learner → Progress tracking: checks progress
- Learner → Certificates: views awards
- Certificate uploads → MySQL database: stores certificate (evidence: `certificate_upload.php`)
- Teacher studio → Course authoring: creates courses
- Course authoring → MySQL database: saves course (evidence: `teacher/course_edit.php`)
- Course authoring → Lesson authoring: links lesson editing (evidence: `teacher/course_edit.php`)
- Course authoring → Resource authoring: links resource editing (evidence: `teacher/course_edit.php`)
- Lesson authoring → MySQL database: stores lessons (evidence: `teacher/lesson_edit.php`)
- Resource authoring → MySQL database: stores resources (evidence: `teacher/resource_edit.php`)
- Teacher studio → Session management: manages sessions
- Session management → MySQL database: stores sessions (evidence: `teacher/live_sessions.php`)
- Session management → Live classroom: links room (evidence: `teacher/live_sessions.php`)
- Session management → Google Meet: opens creation (evidence: `teacher/live_sessions.php`)
- Session management → Jitsi Meet: creates room URL (evidence: `teacher/live_sessions.php`)
- Live class listing → Live classroom: offers room entry
- Admin control → MySQL database: queries metrics (evidence: `admin/dashboard.php`)
- Community → MySQL database: stores discussions (evidence: `community.php`)
- Private messaging → MySQL database: stores messages (evidence: `chat.php`)
- Live classroom → Live chat API: uses chat
- Live chat API → MySQL database: reads and writes (evidence: `api/chat.php`)
- Research hub → Google Scholar: launches search (evidence: `research.php`)
- Research hub → MySQL database: saves papers (evidence: `research.php`)
- Research hub → PDF reader: opens PDF reader
- Learner → AI assistant: asks guidance
- Learner → Wishlist: saves courses
- Accounts and profiles → MySQL database: uses connection (evidence: `config/config.php`)
- Accounts and profiles → Shared helpers: loads helpers
- Learner dashboard → MySQL database: loads learning data (evidence: `dashboard.php`)
- User settings → MySQL database: stores preferences (evidence: `settings.php`)
