How christian001100/library-system works
This is a desktop library-management system backed by a Flask API and MySQL. The user workflow starts in the Tkinter interface: librarians log in and navigate dashboard, book, member, and lending screens. Those screens expose library operations; the sampled member and dashboard code calls API endpoints, while the backend routes handle requests and use model or database logic. The code shown also documents book search and barcode features, lending history and overdue records, and librarian signup. Books and lending screens are included as product areas, but their API calls are not evidenced in the excerpts.
Main entry points: Sidebar.py Navigation · dashboard.py Dashboard · db_config.py MySQL configuration · app.py API application
Components 19
Desktop interface
- Desktop app
frontend/main.py - Navigation
frontend/Sidebar.py - Login screen
frontend/login.py - Dashboard
frontend/dashboard.py - Book screen
frontend/books.py - Member screen
frontend/members.py - Lending screen
frontend/lendings.py
Flask API
- API application
library-system/app.py - Authentication routes
library-system/routes/auth_routes.py - Book routes
library-system/routes/book_routes.py - Member routes
library-system/routes/member_routes.py - Lending routes
library-system/routes/lending_routes.py
Library operations
- Book operations
library-system/models/books.py - Member operations
library-system/models/members.py - Lending operations
library-system/models/lending.py - Librarian accounts
library-system/models/librarians.py
Persistence
- MySQL configuration
library-system/db_config.py - Library database
Other components
- Librarian
Connections 25
- Librarian → Desktop app: uses
- Desktop app → Navigation: creates
frontend/main.py - Desktop app → Login screen: starts at
frontend/main.py - Desktop app → Dashboard: opens
frontend/main.py - Navigation → Dashboard: opens
frontend/Sidebar.py - Navigation → Member screen: opens
frontend/Sidebar.py - Navigation → Book screen: opens
frontend/Sidebar.py - Navigation → Lending screen: opens
frontend/Sidebar.py - API application → Book routes: registers
library-system/app.py - API application → Member routes: registers
library-system/app.py - API application → Lending routes: registers
library-system/app.py - API application → Authentication routes: registers
library-system/app.py - Book routes → Book operations: calls
library-system/routes/book_routes.py - Member routes → Member operations: calls
library-system/routes/member_routes.py - Lending routes → Lending operations: calls
library-system/routes/lending_routes.py - Authentication routes → Librarian accounts: calls
library-system/routes/auth_routes.py - Book operations → MySQL configuration: uses
library-system/models/books.py - Member operations → MySQL configuration: uses
library-system/models/members.py - Lending operations → MySQL configuration: uses
library-system/models/lending.py - Librarian accounts → MySQL configuration: uses
library-system/models/librarians.py - MySQL configuration → Library database: configures
- Dashboard → Book routes: requests books
frontend/dashboard.py - Dashboard → Member routes: requests members
frontend/dashboard.py - Dashboard → Lending routes: requests lending data
frontend/dashboard.py - Member screen → Member routes: requests members
frontend/members.py