How jayanthan-amalanathan/batticloa-library-management-system works
Batticaloa Public Library is an integrated library-management and digital-library platform. The principal visible workflow is browsing books and events in the public site, which requests catalog data from the server and displays results; authenticated staff can also manage DLP synchronization. The backend centralizes API routes and uses shared authentication and database modules. The source index identifies additional public workflows and domain modules, but their detailed calls are not shown in the excerpts, so those connections are omitted. PDF.js is included as a document-viewing capability; its integration with library content is not established here.
Main entry points: index.js HTTP API · db.js Library database · dlpSync.js DLP synchronization · home.js Home experience
Components 19
Public experience
- Home experience
public/js/home.js - Shared interface
public/js/app.js - Book catalog
public/js/catalog.js - Events pages
public/js/events.js - Sign-in and registration
public/js/login.js - Member dashboard
public/js/dashboard.js - Library chat
public/js/chat.js - Contact requests
public/js/contact.js - PDF viewer
public/pdfjs/web/viewer.mjs
Library operations
- Staff administration
public/js/admin.js
Backend services
- HTTP API
server/index.js - Serverless entry
api/index.js - Authentication
server/auth.js - Initial data seeding
server/seed.js
Data and integration
- Library database
server/db.js - DLP synchronization
server/dlpSync.js
Other components
- Library visitor
- Library staff
- Digital library service
Connections 12
- Library visitor → Home experience: opens
- Home experience → HTTP API: requests books and events
public/js/home.js - HTTP API → Library database: queries data
server/index.js - Serverless entry → HTTP API: forwards requests
api/index.js - HTTP API → Authentication: imports authentication
server/index.js - Authentication → Library database: checks sessions
server/auth.js - HTTP API → DLP synchronization: imports sync service
server/index.js - DLP synchronization → Library database: reads and writes sync data
server/dlpSync.js - DLP synchronization → Digital library service: fetches catalog records
server/dlpSync.js - Library staff → Staff administration: uses
- Staff administration → HTTP API: requests sync status and starts sync
public/js/admin.js - Initial data seeding → Library database: inserts initial records
server/seed.js