Skip to content

About

A Java Swing-based desktop application for managing library operations. Features include user authentication, book inventory management (add/remove/view books), staff management, and admin controls. Uses MySQL database for persistent storage. Built with NetBeans IDE using Ant for compilation.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Library Management System

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/.

Features

  • 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

Project Structure

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

Technology Stack

  • Language: Java (JDK 8 or higher)
  • GUI Framework: Java Swing
  • Database: MySQL
  • Build Tool: Apache Ant / NetBeans IDE

Prerequisites

  1. JDK 8 or higher
  2. MySQL Server 5.7 or higher (port 3306)
  3. MySQL Connector/J (included in lib/)

Database Setup

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";

Build & Run

Command line (macOS / Linux)

mkdir -p build/classes
javac -cp "lib/*:java" java/*.java -d build/classes
java -cp "lib/*:build/classes" LoginPage

Command line (Windows)

mkdir build\classes
javac -cp "lib\*;java" java\*.java -d build\classes
java -cp "lib\*;build\classes" LoginPage

NetBeans

Open the project, build (F11), and run (F6). Source directory is configured as java/.

GitHub Pages

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.

Default Credentials

  • Username: admin
  • Password: admin123

Change these after first login.

License

MIT License

Repository

https://github.com/lokeshpuma/Library_Management_System

About

A Java Swing-based desktop application for managing library operations. Features include user authentication, book inventory management (add/remove/view books), staff management, and admin controls. Uses MySQL database for persistent storage. Built with NetBeans IDE using Ant for compilation.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages