How santosh4568/librarymanagementsystem works
Project Type and Purpose
• This is a full-stack web application called “Library Management System.”
• Frontend: React.js SPA with responsive UI and secure authentication.
• Backend: Spring Boot REST API with layered architecture.
• Database: MySQL for persistent storage of Users, Books, and BookIssued records.
File Structure
• Top-level:
• frontend/ → React code (components, API services, public assets).
• src/main/java/lms/spring/LibraryManagementSystem → Spring Boot application.
• src/main/resources/application.properties → DB and CORS settings.
• Backend layers:
• Controller (REST endpoints)
• Service (business logic)
• Repository (Spring Data JPA interfaces)
• Model (JPA entities: Book, User, BookIssued)
• Configuration (CORS setup)
• No microservices—single-module monolith.
README Insights
• Uses React + Bootstrap + Axios → calls REST endpoints.
• Spring Boot + Spring Data JPA → exposes CRUD and borrowing APIs.
• MySQL DB holds all data.
• Secure authentication is implemented (login/signup components and backend auth endpoints).
• Key features: user management, borrowing/return workflow, admin dashboard.
Additional Details
• Authentication flow: user login component → AuthContext → /api/auth/login → Controller → Service → DB → JWT token returned → stored in frontend context.