# jasminegupta17/e-learning-application architecture

> Architecture diagram of the GitHub repository jasminegupta17/e-learning-application, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jasminegupta17/e-learning-application
- Repository: https://github.com/jasminegupta17/e-learning-application

## Overview

#### Purpose and Startup
This is a NetBeans/Ant Java Swing e-learning desktop application backed by MySQL. Students sign up, log in, browse courses, enroll, and watch locally stored lecture videos; administrators manage categories, courses, and lectures. The documented startup sequence is server first, then the main UI: `src/myServer.java` and `src/home_page.java`.

#### Desktop UI and Navigation
Swing forms define the application’s primary user flows, with generated UI layout paired with Java controllers. The public landing and student area are represented by `src/home_page.java`, `src/User_Login.java`, `src/User_Signup.java`, and `src/user_home.java`. Course discovery and lecture viewing use `src/courses.java`, `src/Lectures.java`, and `src/Lecture_detail.java`.

#### Authentication and Role Boundary
Student and administrator access are distinct flows. Student registration/login is handled by `src/User_Signup.java` and `src/User_Login.java`; administrator authentication and landing are handled by `src/admin_login.java` and `src/admin_home.java`. Successful authentication routes users to role-specific UI, separating learning actions from content-management actions.

#### Content Domain and Persistence
The main domain entities are course, category, and lecture, modeled in `src/course.java`, `src/Category.java`, and `src/Lecture.java`. Database access is centralized or initiated through `src/DBLoader.java`, establishing the boundary between Swing event handlers/domain objects and MySQL persistence. The repository includes MySQL Connector/J at `src/libs/mysql-connector-java-8.0.30.jar`.

#### Administrative Content Pipeline
Administrators manage the course catalog and learning content through dedicated Swing screens: `src/Manage_Categories.java`, `src/Manage_courses.java`, and `src/Manage_Lectures.java`. These screens create or modify catalog records and associate lectures with courses; student-facing course and lecture screens consume that resulting catalog.

#### Media Delivery Boundary
Lecture video assets are stored locally under `src/Lectures/`, including `src/Lectures/1689576011665.mp4` and `src/Lectures/uri.mp4`. The README also identifies YouTube trailer support. Local playback/content serving is supported by a separate server/client layer in `src/myServer.java` and `src/myClient.java`, with server control exposed through `src/Server_ON_OFF.java`. `src/libs/JWebServer.jar` is the material server dependency.

#### Runtime and External Dependencies
The application runs on the Java desktop/Swing runtime and is built as a NetBeans Ant project (`build.xml`, `nbproject/project.xml`). MySQL is the required external database service. Bundled HTTP, JSON, and multipart libraries—such as `src/libs/unirest-java-1.4.9.jar`, `src/libs/httpclient-4.5.2.jar`, and `src/libs/json-20160212.jar`—support network/media integration, while local `src/uploads/` provides an application-managed upload storage boundary.

Main entry points: [`src/myServer.java`](https://github.com/jasminegupta17/e-learning-application/blob/main/src/myServer.java) (Local media server), [`src/course.java`](https://github.com/jasminegupta17/e-learning-application/blob/main/src/course.java) (Course catalog domain), [`src/courses.java`](https://github.com/jasminegupta17/e-learning-application/blob/main/src/courses.java) (Course discovery), [`src/Lectures.java`](https://github.com/jasminegupta17/e-learning-application/blob/main/src/Lectures.java) (Lecture viewer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Swing Desktop UI"]
  node_home["Public landing<br/>Swing screen<br/>[home_page.java]"]
  node_student_auth["Student authentication<br/>Swing screens<br/>[User_Login.java]"]
  node_student_home["Student area<br/>Swing screen<br/>[user_home.java]"]
  node_catalog_ui["Course discovery<br/>Swing screen<br/>[courses.java]"]
  node_lecture_ui["Lecture viewer<br/>Swing screens<br/>[Lectures.java]"]
  node_admin_auth["Administrator authentication<br/>Swing screen<br/>[admin_login.java]"]
  node_admin_home["Admin area<br/>Swing screen<br/>[admin_home.java]"]
  node_content_admin["Content management<br/>Swing screens"]
end

subgraph group_domain["Content &amp; Persistence"]
  node_content_domain{{"Course catalog domain<br/>Java entities<br/>[course.java]"}}
  node_db_loader["Database access<br/>JDBC boundary<br/>[DBLoader.java]"]
end

subgraph group_media["Media Delivery"]
  node_media_server["Local media server<br/>Java server<br/>[myServer.java]"]
  node_server_control["Server control<br/>Swing screen<br/>[Server_ON_OFF.java]"]
  node_media_client["Media client<br/>Java client<br/>[myClient.java]"]
  node_lecture_files["Lecture video files<br/>Local media storage"]
  node_uploads["Upload storage<br/>Local storage"]
end

subgraph group_external["Runtime Dependencies"]
  node_mysql[("MySQL<br/>External database")]
  node_mysql_driver["MySQL Connector/J<br/>JDBC driver"]
  node_web_server_lib["JWebServer<br/>Server library<br/>[JWebServer.jar]"]
end

node_home -->|"student access"| node_student_auth
node_student_auth -->|"authenticated student"| node_student_home
node_student_home -->|"browse courses"| node_catalog_ui
node_catalog_ui -->|"open lecture"| node_lecture_ui
node_home -->|"administrator access"| node_admin_auth
node_admin_auth -->|"authenticated administrator"| node_admin_home
node_admin_home -->|"manage catalog"| node_content_admin
node_content_admin -->|"creates and updates"| node_content_domain
node_catalog_ui -->|"reads catalog"| node_content_domain
node_lecture_ui -->|"reads lecture metadata"| node_content_domain
node_content_domain -->|"persists through"| node_db_loader
node_db_loader -->|"JDBC"| node_mysql
node_db_loader -.->|"uses"| node_mysql_driver
node_server_control -->|"starts and stops"| node_media_server
node_media_server -->|"serves"| node_lecture_files
node_media_client -->|"requests media"| node_media_server
node_lecture_ui -->|"plays via"| node_media_client
node_content_admin -->|"stores uploaded media"| node_uploads
node_media_server -.->|"uses"| node_web_server_lib

click node_home "https://github.com/jasminegupta17/e-learning-application/blob/main/src/home_page.java"
click node_student_auth "https://github.com/jasminegupta17/e-learning-application/blob/main/src/User_Login.java"
click node_student_home "https://github.com/jasminegupta17/e-learning-application/blob/main/src/user_home.java"
click node_catalog_ui "https://github.com/jasminegupta17/e-learning-application/blob/main/src/courses.java"
click node_lecture_ui "https://github.com/jasminegupta17/e-learning-application/blob/main/src/Lectures.java"
click node_admin_auth "https://github.com/jasminegupta17/e-learning-application/blob/main/src/admin_login.java"
click node_admin_home "https://github.com/jasminegupta17/e-learning-application/blob/main/src/admin_home.java"
click node_content_admin "https://github.com/jasminegupta17/e-learning-application/blob/main/src/Manage_courses.java"
click node_content_domain "https://github.com/jasminegupta17/e-learning-application/blob/main/src/course.java"
click node_db_loader "https://github.com/jasminegupta17/e-learning-application/blob/main/src/DBLoader.java"
click node_media_server "https://github.com/jasminegupta17/e-learning-application/blob/main/src/myServer.java"
click node_server_control "https://github.com/jasminegupta17/e-learning-application/blob/main/src/Server_ON_OFF.java"
click node_media_client "https://github.com/jasminegupta17/e-learning-application/blob/main/src/myClient.java"
click node_mysql_driver "https://github.com/jasminegupta17/e-learning-application/blob/main/src/libs/mysql-connector-java-8.0.30.jar"
click node_web_server_lib "https://github.com/jasminegupta17/e-learning-application/blob/main/src/libs/JWebServer.jar"

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_student_auth,node_student_home,node_catalog_ui,node_lecture_ui,node_admin_auth,node_admin_home,node_content_admin toneBlue
class node_content_domain,node_db_loader toneAmber
class node_media_server,node_server_control,node_media_client,node_lecture_files,node_uploads toneMint
class node_mysql,node_mysql_driver,node_web_server_lib toneRose
```

## Components

### Swing Desktop UI

Student and administrator workflows.

- [Public landing](https://github.com/jasminegupta17/e-learning-application/blob/main/src/home_page.java): Swing screen · `src/home_page.java`
- [Student authentication](https://github.com/jasminegupta17/e-learning-application/blob/main/src/User_Login.java): Swing screens · Sign-up and login flow. · `src/User_Login.java`
- [Student area](https://github.com/jasminegupta17/e-learning-application/blob/main/src/user_home.java): Swing screen · `src/user_home.java`
- [Course discovery](https://github.com/jasminegupta17/e-learning-application/blob/main/src/courses.java): Swing screen · `src/courses.java`
- [Lecture viewer](https://github.com/jasminegupta17/e-learning-application/blob/main/src/Lectures.java): Swing screens · Lecture listing and detail views. · `src/Lectures.java`
- [Administrator authentication](https://github.com/jasminegupta17/e-learning-application/blob/main/src/admin_login.java): Swing screen · `src/admin_login.java`
- [Admin area](https://github.com/jasminegupta17/e-learning-application/blob/main/src/admin_home.java): Swing screen · `src/admin_home.java`
- [Content management](https://github.com/jasminegupta17/e-learning-application/blob/main/src/Manage_courses.java): Swing screens · Manages categories, courses, and lectures. · `src/Manage_courses.java`

### Content & Persistence

- [Course catalog domain](https://github.com/jasminegupta17/e-learning-application/blob/main/src/course.java): Java entities · Course, category, and lecture models. · `src/course.java`
- [Database access](https://github.com/jasminegupta17/e-learning-application/blob/main/src/DBLoader.java): JDBC boundary · Centralized persistence access. · `src/DBLoader.java`

### Media Delivery

Local lecture serving and playback.

- [Local media server](https://github.com/jasminegupta17/e-learning-application/blob/main/src/myServer.java): Java server · Serves local lecture media. · `src/myServer.java`
- [Server control](https://github.com/jasminegupta17/e-learning-application/blob/main/src/Server_ON_OFF.java): Swing screen · `src/Server_ON_OFF.java`
- [Media client](https://github.com/jasminegupta17/e-learning-application/blob/main/src/myClient.java): Java client · `src/myClient.java`
- **Lecture video files**: Local media storage
- **Upload storage**: Local storage

### Runtime Dependencies

- **MySQL**: External database
- [MySQL Connector/J](https://github.com/jasminegupta17/e-learning-application/blob/main/src/libs/mysql-connector-java-8.0.30.jar): JDBC driver · `src/libs/mysql-connector-java-8.0.30.jar`
- [JWebServer](https://github.com/jasminegupta17/e-learning-application/blob/main/src/libs/JWebServer.jar): Server library · `src/libs/JWebServer.jar`

## Connections

- Public landing → Student authentication: student access
- Student authentication → Student area: authenticated student
- Student area → Course discovery: browse courses
- Course discovery → Lecture viewer: open lecture
- Public landing → Administrator authentication: administrator access
- Administrator authentication → Admin area: authenticated administrator
- Admin area → Content management: manage catalog
- Content management → Course catalog domain: creates and updates
- Course discovery → Course catalog domain: reads catalog
- Lecture viewer → Course catalog domain: reads lecture metadata
- Course catalog domain → Database access: persists through
- Database access → MySQL: JDBC
- Database access → MySQL Connector/J: uses
- Server control → Local media server: starts and stops
- Local media server → Lecture video files: serves
- Media client → Local media server: requests media
- Lecture viewer → Media client: plays via
- Content management → Upload storage: stores uploaded media
- Local media server → JWebServer: uses
