Skip to content

A Java-based Library Management System built using JDBC, Servlets, JSP, following the MVC pattern, and using MySQL for the database. The system allows admin and user roles, enabling users to search, issue, and return books while tracking transactions.

Notifications You must be signed in to change notification settings

RishiChamarthi/Library-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Library Management System πŸ“š

A Java-based Library Management System built using JDBC, Servlets, JSP, following the MVC pattern, and using MySQL for the database. The system allows admin and user roles, enabling users to search, issue, and return books while tracking transactions.


🌟 Features

Admin

  • Add, view, and remove books
  • View all users and issued books
  • Manage transactions (issue/return records)

User

  • Search for books
  • Issue available books
  • Return books
  • View issued book history

General

  • Login system for admin and users
  • MVC architecture ensures clean separation of concerns
  • Connection pooling with HikariCP for efficient database connections

πŸ› οΈ Tech Stack

  • Backend: Java, JDBC, Servlets
  • Frontend: JSP, HTML, CSS
  • Database: MySQL
  • Server: Apache Tomcat
  • IDE: Eclipse
  • Libraries: HikariCP for database connection pooling

⚑ Setup Instructions

1. Clone the repository

git clone https://github.com/RishiChamarthi/Library-Management-System.git

2. Import into Eclipse

Open Eclipse IDE β†’ File β†’ Import β†’ Existing Projects into Workspace β†’ Select the project folder.

3. Setup Database

Open MySQL Workbench (or any MySQL client).

Run the database β†’ schema.sql file from this repo to create tables
Run the database β†’ data.sql file from this repo to create the sample data

4. Configure Database Connection

Open src β†’ main β†’ webapp β†’ WEB-INF β†’ config β†’ config.properties 

Update:

url = jdbc:mysql://localhost:3306/LibraryManagementSystem
user = root
password = your_mysql_password

5. Run on Tomcat

Right-click project β†’ Run As β†’ Run on Server β†’ Apache Tomcat.

Access via: http://localhost:8080/LibraryManagementSystem/

πŸ“ Database Schema (Summary)

  • users β†’ Stores user and admin credentials

  • books β†’ Stores book information

  • book_transactions β†’ Stores issue and return records

πŸš€ Future Improvements

  • Add search by category and pagination

  • Add remove user option for Admin

  • Enhance UI with Bootstrap/TailwindCSS

About

A Java-based Library Management System built using JDBC, Servlets, JSP, following the MVC pattern, and using MySQL for the database. The system allows admin and user roles, enabling users to search, issue, and return books while tracking transactions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages