How aswinsudha271206-boop/library-mangement-system works
Alexandria is a library-management application with a React interface and FastAPI backend. Administrators manage books, members, circulation transactions, and analytics; public users can register a student pass and interact with the catalog. The frontend App loads books, students, and holds from API endpoints and coordinates admin views, while backend routers implement authentication and catalog, student, and hold operations over SQLAlchemy models. The README is empty; some frontend view behavior and the books router are represented from the source index rather than inspected excerpts, so those links are limited to documented calls or imports.
Main entry points: App.jsx App coordinator · students.py Student profiles · main.py FastAPI application · connection.py Database sessions
Components 20
Frontend experience
- App coordinator
Frontend/src/App.jsx - Login screen
Frontend/src/views/Login.jsx - Public catalog
Frontend/src/views/Home.jsx - Dashboard
Frontend/src/views/Dashboard.jsx - Book management
Frontend/src/views/Books.jsx - Member management
Frontend/src/views/Members.jsx - Transaction registry
Frontend/src/views/Transactions.jsx - Analytics
Frontend/src/views/Analytics.jsx - Admin navigation
Frontend/src/components/Sidebar.jsx - Book card
Frontend/src/components/BookCard.jsx - Stats card
Frontend/src/components/StatsCard.jsx
API service
- FastAPI application
backend/app/main.py
Library operations
- Authentication
backend/app/router/auth.py - Catalog API
backend/app/router/books.py - Student profiles
backend/app/router/students.py - Holds and circulation
backend/app/router/holds.py
Persistence and contracts
- Database sessions
backend/app/database/connection.py - Library records
backend/app/model/models.py - API schemas
backend/app/schemas/schemas.py
Other components
- Library user
Connections 33
- Library user → Login screen: signs in
- Library user → Public catalog: browses and registers
Frontend/src/views/Home.jsx - App coordinator → Admin navigation: renders navigation
Frontend/src/App.jsx - App coordinator → Dashboard: renders view
Frontend/src/App.jsx - App coordinator → Book management: renders view
Frontend/src/App.jsx - App coordinator → Member management: renders view
Frontend/src/App.jsx - App coordinator → Transaction registry: renders view
Frontend/src/App.jsx - App coordinator → Analytics: renders view
Frontend/src/App.jsx - Book management → Book card: renders cards
Frontend/src/views/Books.jsx - Dashboard → Stats card: renders metrics
Frontend/src/views/Dashboard.jsx - App coordinator → Catalog API: requests catalog
Frontend/src/App.jsx - App coordinator → Student profiles: requests members
Frontend/src/App.jsx - App coordinator → Holds and circulation: requests holds
Frontend/src/App.jsx - Public catalog → Student profiles: registers student
Frontend/src/views/Home.jsx - Login screen → Authentication: authenticates
- FastAPI application → Catalog API: mounts router
backend/app/main.py - FastAPI application → Authentication: mounts router
backend/app/main.py - FastAPI application → Holds and circulation: mounts router
backend/app/main.py - FastAPI application → Student profiles: mounts router
backend/app/main.py - FastAPI application → Database sessions: creates tables
backend/app/main.py - Authentication → Database sessions: opens sessions
backend/app/router/auth.py - Authentication → Library records: queries users
backend/app/router/auth.py - Authentication → API schemas: validates login
backend/app/router/auth.py - Catalog API → Database sessions: opens sessions
backend/app/router/books.py - Catalog API → Library records: uses records
backend/app/router/books.py - Catalog API → API schemas: uses contracts
backend/app/router/books.py - Student profiles → Database sessions: opens sessions
backend/app/router/students.py - Student profiles → Library records: queries students
backend/app/router/students.py - Student profiles → API schemas: validates profiles
backend/app/router/students.py - Holds and circulation → Database sessions: opens sessions
backend/app/router/holds.py - Holds and circulation → Library records: updates records
backend/app/router/holds.py - Holds and circulation → API schemas: validates holds
backend/app/router/holds.py - Library records → Database sessions: uses base
backend/app/model/models.py