How trinhkimloan/htttql_thuvien works
This is a library-management web application for readers, librarians, and managers. Users interact with the React interface, whose API client sends authenticated requests to an Express service; that service applies authentication and role checks, runs library workflows, and persists results in MySQL. The domain includes catalog and reader administration, circulation, reservations, fines, reports, reader accounts, and notifications. Backend routes are concentrated in one large file, so several workflow nodes share its path. The README is empty; feature coverage follows the sampled UI and route excerpts, and the client-to-server link is unverified in the excerpts.
Main entry points: index.js HTTP routes · db.js Database access · App.jsx Library interface · api.js API client
Components 16
Web client
- Library interface
frontend/src/App.jsx - API client
frontend/src/api.js
API service
- HTTP routes
backend/src/index.js - Authentication
backend/src/auth.js - Domain helpers
backend/src/helpers.js
Library workflows
- Catalog management
backend/src/index.js - Reader management
backend/src/index.js - Loans and returns
backend/src/index.js - Reservations
backend/src/index.js - Fines
backend/src/index.js - Reports
backend/src/index.js - Notifications
backend/src/index.js - Reader profile
backend/src/index.js
Persistence
- Database access
backend/src/db.js - MySQL database
Other components
- Library user
Connections 16
- Library user → Library interface: uses
- Library interface → API client: calls
frontend/src/App.jsx - API client → HTTP routes: sends requests
- HTTP routes → Authentication: checks access
backend/src/index.js - HTTP routes → Domain helpers: uses
backend/src/index.js - HTTP routes → Catalog management: routes catalog
backend/src/index.js - HTTP routes → Reader management: routes readers
backend/src/index.js - HTTP routes → Loans and returns: routes loans
backend/src/index.js - HTTP routes → Reservations: routes reservations
backend/src/index.js - HTTP routes → Fines: routes fines
backend/src/index.js - HTTP routes → Reports: routes reports
backend/src/index.js - HTTP routes → Notifications: routes notices
backend/src/index.js - HTTP routes → Reader profile: routes profile
backend/src/index.js - Authentication → Database access: reads accounts
backend/src/auth.js - HTTP routes → Database access: queries data
backend/src/index.js - Database access → MySQL database: connects
backend/src/db.js