This Course Management System (CMS) is a Java application built using the Model-View-Controller (MVC) architectural pattern. It allows users to perform CRUD (Create, Read, Update, Delete) operations on courses stored in a MySQL database. The application provides a graphical user interface (GUI) for easy interaction.
- View Courses: Display a list of all courses, including their names, assigned teachers, and categories.
- Add Course: Add a new course to the system, specifying its name, assigned teacher, and category.
- Update Course: Modify existing course details, such as name, assigned teacher, or category.
- Delete Course: Remove a course from the system.
- Java Development Kit (JDK) 8 or higher
- MySQL database server
-
Clone the Repository: Clone this repository to your local machine using Git:
git clone https://github.com/habibundayishimiye/HabJass250_Course_Management_System
-
Import Database Schema: Set up the MySQL database by executing the SQL script provided in the
schema.sql
file. This script will create the necessary tables (Teacher
andCourse
) and insert sample data for testing. -
Configure Database Connection: Update the database connection details in the
util.DatabaseConnection
class to match your MySQL server configuration (URL, username, and password). -
Compile the Code: Compile the Java source files using the following command:
javac *.java
-
Run the Application: Execute the main class
Main
to launch the application:java Main
- View Courses: Upon launching the application, you will see a table displaying all existing courses.
- Add Course: Click the "Save" button to add a new course. Enter the course details in the provided fields and click "Save" again to confirm.
- Update Course: Select a course from the table by clicking on its row. Modify the course details in the input fields, then click the "Update" button to save the changes.
- Delete Course: Select a course from the table, then click the "Delete" button to remove it from the system.
- Database Connection Issues: Ensure that the database connection details in
util.DatabaseConnection
are correct and that the MySQL server is running. - Compilation Errors: Check for any compilation errors and resolve them by correcting the source code.
This project is licensed under the MIT License.
- Developed by code with edison
For any inquiries or support requests, please contact edsnkvn@gmail.com.