This is the Java backend implementation of the Library App.
It is a Spring Boot REST API that connects to MongoDB and exposes routes for managing books, users, and library operations.
- Java 21
- Spring Boot 3.4.5
- Spring Web (REST API)
- Spring Data MongoDB (database access)
- Spring Security (basic security and JWT support)
- MongoDB Atlas / Local MongoDB
- Maven (build and dependency management)
git clone https://github.com/mongodb-developer/library-management-system.git
cd library-management-system/java-serverThe app requires a MongoDB connection string. On Linux / macOS
export MONGODB_URI="<YOUR_CONNECTION_STRING>"
On Windows
$env:MONGODB_URI="<YOUR_CONNECTION_STRING>"
mvn spring-boot:run
The application will start on port 8080 by default:
http://localhost:8080