How esic775/gestion-bibliothequem works
BOOKIN is a library-management application with a React interface and a NestJS REST API backed by relational models. The principal workflow is a member or librarian using the frontend to access the API, then managing catalogue records, member accounts, loans, and reservations. Circulation logic coordinates stock, loan limits, reservation queues, renewals, returns, and late fines. The README documents further capabilities such as book covers and Swagger; those details are not all visible in sampled source. Arrows use README or source-index evidence; unsampled connections are omitted.
Main entry points: App.tsx Frontend app · main.ts NestJS API · src MySQL data · circulation.service.ts Circulation rules
Components 20
Library interface
- Frontend app
library-frontend/src/App.tsx - Catalogue views
library-frontend/src/views/BooksView.tsx - Author view
library-frontend/src/views/AuthorsView.tsx - Member views
library-frontend/src/views/UsersView.tsx - Loan view
library-frontend/src/views/LoansView.tsx - Reservation view
library-frontend/src/views/ReservationsView.tsx - Login view
library-frontend/src/views/LoginView.tsx - API client
library-frontend/src/api/index.ts
REST API
- NestJS API
src/main.ts - Authentication
src/auth/auth.service.ts
Library operations
- Books and categories
src/books/books.service.ts - Author management
src/authors/authors.service.ts - Member accounts
src/users/users.service.ts - Member profiles
src/profiles/profiles.service.ts - Loans and returns
src/loans/loans.service.ts - Reservations
src/reservations/reservations.service.ts - Circulation rules
src/circulation/circulation.service.ts
Relational data
- MySQL data
src
Other components
- Member or librarian
- API server
Connections 29
- Member or librarian → Frontend app: uses
- Frontend app → Catalogue views: renders
library-frontend/src/App.tsx - Frontend app → Author view: renders
library-frontend/src/App.tsx - Frontend app → Member views: renders
library-frontend/src/App.tsx - Frontend app → Loan view: renders
library-frontend/src/App.tsx - Frontend app → Reservation view: renders
library-frontend/src/App.tsx - Frontend app → Login view: renders
library-frontend/src/App.tsx - Frontend app → API client: uses
library-frontend/src/App.tsx - Author view → API client: requests data
library-frontend/src/views/AuthorsView.tsx - API client → API server: sends HTTP
- API server → NestJS API: serves
- NestJS API → Authentication: registers
- NestJS API → Books and categories: registers
- NestJS API → Author management: registers
- NestJS API → Member accounts: registers
- NestJS API → Member profiles: registers
- NestJS API → Loans and returns: registers
- NestJS API → Reservations: registers
- Authentication → MySQL data: reads and writes
src/auth/auth.service.ts - Books and categories → MySQL data: reads and writes
src/books/books.service.ts - Author management → MySQL data: reads and writes
src/authors/authors.service.ts - Member accounts → MySQL data: reads and writes
src/users/users.service.ts - Member profiles → MySQL data: reads and writes
src/profiles/profiles.service.ts - Loans and returns → MySQL data: reads and writes
src/loans/loans.service.ts - Reservations → MySQL data: reads and writes
src/reservations/reservations.service.ts - Loans and returns → Circulation rules: delegates to
src/loans/loans.service.ts - Reservations → Circulation rules: delegates to
src/reservations/reservations.service.ts - Books and categories → Circulation rules: delegates to
src/books/books.service.ts - Circulation rules → MySQL data: updates stock
src/circulation/circulation.service.ts