How saikat021/library-management-system works
Project type and purpose
• From the file‐tree and README, this is a Java Spring Boot monolithic web application providing a RESTful Library Management System backend.
• Purpose: allow students to register, issue/return books, manage authors/books, and secure endpoints via Spring Security.
File structure
• Top‐level: pom.xml, maven wrapper → Maven‐based build.
• src/main/java/com/StudentLibrary/Studentlibrary
• Controllers: REST entry points (AuthorController, BookController, StudentController, TransactionController).
• Services: business logic layers (AuthorService, BookService, StudentService, TransactionService, CardService).
• Repositories: Spring Data JPA interfaces to MySQL (AuthorRepository, BookRepository, etc.).
• Model: JPA entities (Student, Book, Author, Card, Transaction, enums).
• StudentLibraryApplication.java: Spring Boot bootstrap.
• src/main/resources/application.properties: DB and security config.
• src/test: single integration test scaffold.
README for additional insights
• Architecture: Monolithic layered design (Controller → Service → Repository → Database).
• Technology stack: Spring Boot, Spring Security, Spring Data JPA, MySQL, Lombok.
• Key flows: issueBook and returnBook APIs.
• Security: role‐based endpoint protection (STUDENT vs ADMIN) via Spring Security filters.