How jasminegupta17/e-learning-application works
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: myServer.java Local media server · course.java Course catalog domain · courses.java Course discovery · Lectures.java Lecture viewer
Components 18
Swing Desktop UI
Student and administrator workflows.
- Public landing
src/home_page.java - Student authentication · Sign-up and login flow.
src/User_Login.java - Student area
src/user_home.java - Course discovery
src/courses.java - Lecture viewer · Lecture listing and detail views.
src/Lectures.java - Administrator authentication
src/admin_login.java - Admin area
src/admin_home.java - Content management · Manages categories, courses, and lectures.
src/Manage_courses.java
Content & Persistence
- Course catalog domain · Course, category, and lecture models.
src/course.java - Database access · Centralized persistence access.
src/DBLoader.java
Media Delivery
Local lecture serving and playback.
- Local media server · Serves local lecture media.
src/myServer.java - Server control
src/Server_ON_OFF.java - Media client
src/myClient.java - Lecture video files
- Upload storage
Runtime Dependencies
- MySQL
- MySQL Connector/J
src/libs/mysql-connector-java-8.0.30.jar - JWebServer
src/libs/JWebServer.jar
Connections 19
- 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