The Library Management System is a web-based application developed using Java (JSP, Servlets), Tomcat Server, MySQL Database, HTML, and CSS. It facilitates managing library operations such as book management, user authentication, and book borrowing.
- Add, update, search, and delete book records.
- Issue and return books.
- Manage user records.
- Search for books by title, author, or category.
- View available books.
- Frontend: HTML, CSS, JSP
- Backend: Java Servlets
- Database: MySQL
- Server: Apache Tomcat
CREATE DATABASE LibraryDB;
USE LibraryDB;
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(50) NOT NULL,
email VARCHAR(100) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL
);
CREATE TABLE books (
id INT AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(255) NOT NULL,
author VARCHAR(100),
category VARCHAR(50),
is_available BOOLEAN DEFAULT TRUE
);
CREATE TABLE borrowed_books (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT,
book_id INT,
borrow_date DATE,
return_date DATE,
FOREIGN KEY (user_id) REFERENCES users(id),
FOREIGN KEY (book_id) REFERENCES books(id)
);
git clone https://github.com/agharsh53/library-management-system.git
- Open the project in an IDE like Eclipse or IntelliJ IDEA.
- Import the provided SQL script to MySQL.
- Deploy the project on Apache Tomcat Server.
- Access the application via
http://localhost:9090/library-management-system
.
Add Book Page | Update Book Page | Delete Book Page |
---|---|---|
![]() |
![]() |
![]() |
Issue Book Page | Return Book Page |
---|---|
![]() |
![]() |
View Books | Search Books | View Profile |
---|---|---|
![]() |
![]() |
![]() |
Contributions are welcome! Please fork this repository, create a new branch, and submit a pull request.
- Name: Harsh Kumar Agrawal
- Email: agrawalharsh2653@gmail.com