How mallajyothiprakash/librarymanagementsystem works
This is a browser-based library management system: users browse, search and paginate the catalog, manage book records, and issue or return books. The frontend calls a Spring REST API; its service layer applies catalog and loan rules before JPA persistence in MySQL. The README also documents dashboard statistics and backend status, represented by the frontend API module. Backend and frontend runtime wiring are based on the README; source excerpts confirm the controller, service, repository, model, and frontend API interactions. The Jenkins and container deployment setup is omitted as delivery infrastructure.
Main entry points: BookController.java Book REST endpoints · BookRepository.java Book repository · BookService.java Catalog and loan rules · index.html Library pages
Components 15
Browser experience
- Library pages
frontend/index.html - Browser interactions
frontend/js/api.js - Page initialization
frontend/js/app.js
Book API and rules
- Book REST endpoints
src/main/java/com/library/controller/BookController.java - Catalog and loan rules
src/main/java/com/library/service/BookService.java - Book record
src/main/java/com/library/entity/Book.java - API error mapping
src/main/java/com/library/exception/GlobalExceptionHandler.java - Missing-book exception
src/main/java/com/library/exception/BookNotFoundException.java
Book persistence
- Book repository
src/main/java/com/library/repository/BookRepository.java - MySQL database
Runtime configuration
- Nginx frontend
frontend/nginx.conf - Sample book seeding
src/main/java/com/library/config/DataLoader.java - CORS configuration
src/main/java/com/library/config/WebConfig.java - Backend settings
src/main/resources/application.properties
Other components
- Library user
Connections 14
- Library user → Nginx frontend: opens pages
- Nginx frontend → Library pages: serves
- Library pages → Page initialization: loads scripts
- Page initialization → Browser interactions: starts page actions
- Browser interactions → Book REST endpoints: sends HTTP requests
- Book REST endpoints → Catalog and loan rules: delegates operations
- Catalog and loan rules → Book repository: reads and writes
- Book repository → MySQL database: queries and persists
- Sample book seeding → Book repository: checks and seeds
- Book REST endpoints → API error mapping: maps API errors
- Catalog and loan rules → Missing-book exception: throws missing-book
- Book repository → Book record: loads and saves
- Backend settings → MySQL database: configures connection
- CORS configuration → Book REST endpoints: allows browser requests