Skip to content

A Spring Boot API to manage books and users in a library. Supports adding, searching, borrowing, and returning books with late fee tracking. Uses MySQL for data storage.

Notifications You must be signed in to change notification settings

mukund-rakholiya/Library-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Management System API 📚

A Spring Boot backend API for managing a library system. This project helps users efficiently handle book and user data using a MySQL database. It supports various operations such as adding books, searching by title or author, borrowing and returning books, and tracking borrowed books.


Features 🌟

  • Book Management: Add, search, and manage books by title, author, and genre.
  • User Management: Track users and their borrowed books.
  • Borrow & Return: Handle book borrowing and returning with automatic late fee calculation.
  • Search Functionality: Search books by title or author.

Technology Stack 🛠️

  • Backend Framework: Spring Boot
  • Database: MySQL
  • ORM: Hibernate (JPA)
  • Language: Java
  • Tools: Maven, Postman (for API testing)

Setup Instructions ⚙️

Prerequisites 🧰

  • Java Development Kit (JDK): Version 11 or higher.
  • MySQL: Installed and running.
  • Maven: For dependency management.
  • Postman (optional): For testing API endpoints.

Installation Steps 🚀

  1. Clone the repository:
git clone https://github.com/your-username/library-management-system-api.git
  1. Navigate to the project directory:
cd library-management-system-api
  1. Configure the database in application.properties:
  • Open the src/main/resources/application.properties file and configure the database:
spring.datasource.url=jdbc:mysql://localhost:3306/library_db
spring.datasource.username=your_username
spring.datasource.password=your_password
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
  1. Build and run the project:
   mvn spring-boot:run
  1. Access the API at http://localhost:8080.

Future Enhancements 🚧

  • 🔒 Add authentication and authorization for better security.
  • 🖥️ Introduce a UI for library staff and users.
  • 📧 Implement notifications for overdue books.
  • 📱 Add support for e-books and digital lending.

License 📄

  • This project is licensed under the MIT License.

Contribution 🤝

- Contributions are welcome! Feel free to:

  • Fork the repository.
  • Create a new branch.
  • Make your changes.
  • Submit a pull request.

Contact 📬

- For any queries or suggestions, feel free to reach out:

Mukund Rakholiya

About

A Spring Boot API to manage books and users in a library. Supports adding, searching, borrowing, and returning books with late fee tracking. Uses MySQL for data storage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages