A desktop application built with Java Swing for managing library operations efficiently. This system provides a user-friendly interface for managing books, staff, and administrative functions.
Live site (GitHub Pages): https://lokeshpuma.github.io/Library_Management_System/
The src/ folder is the static project site deployed to GitHub Pages. The runnable Java application lives in java/.
- User Authentication: Secure login system for authorized access
- Book Management: View, add, and remove books from inventory
- Staff Management: View, add, and remove staff members
- Admin Panel: Edit admin credentials and system settings
- Dashboard: Centralized control panel for all library operations
- Database Integration: MySQL database for persistent data storage
Library_Management_System/
├── src/ # GitHub Pages site (index.html, css/)
├── java/ # Java Swing source (.java, .form)
├── lib/ # MySQL Connector/J
├── build/ # Compiled classes (gitignored)
├── nbproject/ # NetBeans project configuration
├── build.xml # Ant build configuration
├── .github/workflows/ # GitHub Pages deployment
└── README.md
- Language: Java (JDK 8 or higher)
- GUI Framework: Java Swing
- Database: MySQL
- Build Tool: Apache Ant / NetBeans IDE
- JDK 8 or higher
- MySQL Server 5.7 or higher (port 3306)
- MySQL Connector/J (included in
lib/)
CREATE DATABASE library_db;
USE library_db;
CREATE TABLE books (
book_id INT PRIMARY KEY AUTO_INCREMENT,
title VARCHAR(255) NOT NULL,
author VARCHAR(255) NOT NULL,
isbn VARCHAR(20),
quantity INT,
publication_year INT
);
CREATE TABLE staff (
staff_id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255) NOT NULL,
email VARCHAR(255),
phone VARCHAR(15),
position VARCHAR(100),
hire_date DATE
);
CREATE TABLE admin (
admin_id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(100) UNIQUE NOT NULL,
password VARCHAR(255) NOT NULL
);Update credentials in java/Dashboard.java:
String url = "jdbc:mysql://localhost:3306/library_db";
String user = "root";
String password = "your_password";mkdir -p build/classes
javac -cp "lib/*:java" java/*.java -d build/classes
java -cp "lib/*:build/classes" LoginPagemkdir build\classes
javac -cp "lib\*;java" java\*.java -d build\classes
java -cp "lib\*;build\classes" LoginPageOpen the project, build (F11), and run (F6). Source directory is configured as java/.
Deployment runs automatically on push to main via .github/workflows/pages.yml, publishing the contents of src/.
Enable Pages in the repository: Settings → Pages → Build and deployment → Source: GitHub Actions.
- Username:
admin - Password:
admin123
Change these after first login.
MIT License