A RESTful API built with Spring Boot, PostgreSQL, and H2 for managing books and borrowers in a library.
- Register Borrowers
- Register Books
- List All Books
- Borrow a Book (Ensures only one borrower per book at a time)
- Return a Book
- Uses PostgreSQL for Development
- Uses H2 for Testing
- Java 17
- Spring Boot 3.x
- Spring Data JPA
- PostgreSQL (Development)
- H2 Database (Testing)
- JUnit & Mockito (Testing)
git clone https://github.com/shuwair/library-management.git
cd library-management