Skip to content

vishwjit3303/Library-management-using-servlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Book Library Management System

Description

The Book Library Management System is a web-based application designed to manage library resources such as books, borrowers, and users efficiently. It provides essential features like adding books, registering users, managing borrow records, and fetching necessary data from the database. The project is implemented using Java Servlets for backend logic and JDBC for database connectivity.


Features

  1. Add Books

    • Add new books to the library database using AddBookServlet.
  2. Add Borrowers

    • Register borrowers with necessary details via AddBorrowerServlet.
  3. User Management

    • Add and manage library users with AddUserServlet.
  4. Data Retrieval

    • Fetch book records using FetchRecordsBook servlet.
    • Retrieve specific book details with RequiredBookData.
  5. User Authentication

    • Login functionality via LoginPage.
    • Signup for new users through SignupPage.
  6. User Details

    • Manage and fetch user details via UserDetailsServlet.

Technologies Used

  1. Frontend

    • HTML, CSS, and JavaScript (for forms and user interface).
  2. Backend

    • Java Servlets.
  3. Database

    • MySQL Database connected via JDBC.
  4. Server

    • Deployed on Apache Tomcat or any other servlet container.

Prerequisites

  1. Java Development Kit (JDK) 8 or higher.
  2. Apache Tomcat server.
  3. SQL Database (e.g., MySQL or PostgreSQL).
  4. JDBC Driver for SQL database.

Installation and Setup

Step 1: Clone the Repository

git clone https://github.com/your-repo/book-library-management.git  
cd book-library-management  

Step 2: Configure the Database

  1. Create a SQL database (e.g., library_management).
  2. Run the provided SQL script to set up tables.
  3. Update the database connection details in the JDBC configuration file (db.properties).

Step 3: Deploy the Application

  1. Import the project into an IDE (e.g., Eclipse or IntelliJ).
  2. Build the project and deploy the WAR file to Tomcat.

Step 4: Start the Server

  • Start the Tomcat server and access the application at http://localhost:8080/book-library-management.

Project Structure

/book-library-management  
├── src  
│   ├── main  
│   │   ├── AddBookServlet.java  
│   │   ├── AddBorrowerServlet.java  
│   │   ├── AddUserServlet.java  
│   │   ├── FetchRecordsBook.java  
│   │   ├── RequiredBookData.java  
│   │   ├── LoginPage.java  
│   │   ├── SignupPage.java  
│   │   ├── UserDetailsServlet.java  
├── build  
├── SQL  
│   ├── library_management.sql  

  • Output
  • 1 image
  • 2 image
  • 3 image
  • 4 image
  • 5 image
  • 6 image
  • 7 image
  • 8 image

Usage

  1. Admin:

    • Add books and borrowers.
    • Manage user data.
  2. User:

    • Register for an account.
    • Login and view book details.

Contribution

  1. Fork the repository.
  2. Create a new branch (feature-branch-name).
  3. Submit a pull request with detailed changes.

License

This project is licensed under the MIT License.


Let me know if you need to customize it further!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors