How bilal-abu-al-rub/librarymanagementsystem works
This repository implements a library-management product with a public book-browsing portal and an administrative frontend backed by an ASP.NET API. The main workflow is users browsing or staff managing books, categories, members, and loans; frontend pages send requests through a shared JWT-aware API client to domain-specific controllers, which access library data through the application database interface. Authentication is a distinct capability. The README is empty, so the map follows the source tree and available excerpts; links to unsampled frontend behavior are limited to relationships listed in the source index.
Main entry points: ApplicationDbContext.cs EF data context · App.jsx Route application · api.js HTTP API client · IApplicationDbContext.cs Application data contract
Components 28
Web frontend
- Route application
frontend/src/App.jsx - Public portal
frontend/src/pages/PublicPortal.jsx - Book management
frontend/src/pages/BooksPage.jsx - Category management
frontend/src/pages/CategoriesPage.jsx - Borrower management
frontend/src/pages/BorrowersPage.jsx - Loan management
frontend/src/pages/LoansPage.jsx - Login and registration
frontend/src/pages/LoginPage.jsx - HTTP API client
frontend/src/services/api.js
API and authentication
- Books endpoints
src/LibraryManagement.API/Controllers/BooksController.cs - Category endpoints
src/LibraryManagement.API/Controllers/CategoriesController.cs - Member endpoints
src/LibraryManagement.API/Controllers/MembersController.cs - Loan endpoints
src/LibraryManagement.API/Controllers/LoansController.cs - Authentication endpoints
src/LibraryManagement.API/Controllers/AuthController.cs - API configuration
src/LibraryManagement.API/Program.cs
Application boundary
- Application data contract
src/LibraryManagement.Application/Common/Interfaces/IApplicationDbContext.cs - Current-user contract
src/LibraryManagement.Application/Common/Interfaces/ICurrentUserService.cs - JWT generator contract
src/LibraryManagement.Application/Common/Interfaces/IJwtTokenGenerator.cs
Library domain
- Book entity
src/LibraryManagement.Domain/Entities/Book.cs - Category entity
src/LibraryManagement.Domain/Entities/Category.cs - Author entity
src/LibraryManagement.Domain/Entities/Author.cs - Book-author link
src/LibraryManagement.Domain/Entities/BookAuthor.cs - Member entity
src/LibraryManagement.Domain/Entities/Member.cs - Loan entity
src/LibraryManagement.Domain/Entities/Loan.cs
Persistence and identity
- EF data context
src/LibraryManagement.Infrastructure/Persistence/ApplicationDbContext.cs - Current-user service
src/LibraryManagement.Infrastructure/Services/CurrentUserService.cs - JWT token service
src/LibraryManagement.Infrastructure/Services/JwtTokenGenerator.cs
Other components
- Visitor
- Library staff
Connections 34
- Visitor → Public portal: browses
- Library staff → Route application: uses
frontend/src/App.jsx - Route application → Public portal: routes to
frontend/src/App.jsx - Route application → Login and registration: routes to
frontend/src/App.jsx - Route application → Book management: routes to
frontend/src/App.jsx - Route application → Category management: routes to
frontend/src/App.jsx - Route application → Borrower management: routes to
frontend/src/App.jsx - Route application → Loan management: routes to
frontend/src/App.jsx - Public portal → HTTP API client: requests through
frontend/src/pages/PublicPortal.jsx - Book management → HTTP API client: requests through
frontend/src/pages/BooksPage.jsx - Category management → HTTP API client: requests through
frontend/src/pages/CategoriesPage.jsx - Borrower management → HTTP API client: requests through
frontend/src/pages/BorrowersPage.jsx - Loan management → HTTP API client: requests through
frontend/src/pages/LoansPage.jsx - Login and registration → HTTP API client: requests through
frontend/src/pages/LoginPage.jsx - HTTP API client → Books endpoints: sends HTTP requests
frontend/src/services/api.js - Books endpoints → Application data contract: queries and saves
src/LibraryManagement.API/Controllers/BooksController.cs - Category endpoints → Application data contract: queries and saves
src/LibraryManagement.API/Controllers/CategoriesController.cs - Member endpoints → Application data contract: queries
src/LibraryManagement.API/Controllers/MembersController.cs - Loan endpoints → Application data contract: queries and saves
src/LibraryManagement.API/Controllers/LoansController.cs - Authentication endpoints → Application data contract: queries and saves
src/LibraryManagement.API/Controllers/AuthController.cs - Authentication endpoints → JWT generator contract: requests tokens
src/LibraryManagement.API/Controllers/AuthController.cs - API configuration → EF data context: registers
src/LibraryManagement.API/Program.cs - API configuration → JWT token service: registers
src/LibraryManagement.API/Program.cs - API configuration → Current-user service: registers
src/LibraryManagement.API/Program.cs - EF data context → Application data contract: implements
src/LibraryManagement.Infrastructure/Persistence/ApplicationDbContext.cs - JWT token service → JWT generator contract: implements
src/LibraryManagement.Infrastructure/Services/JwtTokenGenerator.cs - Current-user service → Current-user contract: implements
src/LibraryManagement.Infrastructure/Services/CurrentUserService.cs - EF data context → Current-user contract: reads identity for auditing
src/LibraryManagement.Infrastructure/Persistence/ApplicationDbContext.cs - EF data context → Book entity: maps set
src/LibraryManagement.Infrastructure/Persistence/ApplicationDbContext.cs - EF data context → Category entity: maps set
src/LibraryManagement.Infrastructure/Persistence/ApplicationDbContext.cs - EF data context → Author entity: maps set
src/LibraryManagement.Infrastructure/Persistence/ApplicationDbContext.cs - EF data context → Book-author link: maps set
src/LibraryManagement.Infrastructure/Persistence/ApplicationDbContext.cs - EF data context → Member entity: maps set
src/LibraryManagement.Infrastructure/Persistence/ApplicationDbContext.cs - EF data context → Loan entity: maps set
src/LibraryManagement.Infrastructure/Persistence/ApplicationDbContext.cs