A backend Library Management System built using Spring Boot and Java.
This project provides RESTful APIs to manage books, users, and the issue/return process.
- CRUD operations for books and users
- Issue and return books
- Spring Boot REST API
- Easy database configuration
- Java
- Spring Boot
- Spring Data JPA
- Maven
- H2 Database (default, can switch to MySQL)
- Optional: Lombok for reducing boilerplate
- Java 11+
- Maven
- Git
- Clone the repository
git clone https://github.com/dehlawi96/Library-System-SpringBoot.git cd Library-System-SpringBoot - Build the Project
mvn clean package
- Run the application
mvn spring-boot:run
- By default, it uses an H2 in-memory database. You can configure MySQL by editing application.properties.
API Endpoints(Examples) GET /books – List all books
POST /books – Add a new book
PUT /books/{id} – Update a book
DELETE /books/{id} – Delete a book
POST /issue – Issue a book to a user
POST /return – Return a book
(Adjust endpoints based on your actual controller paths.)
Contributions are welcome.
-
Fork the repo
-
Create a feature branch
-
Commit changes
-
Push to your branch
-
Open a pull request