How dsk47/library-checkout-tracker works
Library Tracker lets users record borrowed books, view the current borrow list, and mark books returned. The browser client sends list, add, and return requests to the Express API; the API uses the Borrow model to query or update MongoDB. The root-level script.js duplicates the public client, but the shown server serves files from public. The README is empty, so capabilities and links here are limited to the sampled source; the root script’s runtime role is not shown.
Main entry points: server.js Express API · script.js Borrow interface · Borrow.js Borrow model
Components 7
Browser client
- Borrow interface
public/script.js - Root client copy
script.js
API service
- Express API
server.js
Borrow data
- Borrow model
models/Borrow.js - MongoDB
Other components
- Library user
- Web browser
Connections 8
- Library user → Web browser: uses
- Web browser → Borrow interface: runs
- Express API → Borrow interface: serves static files
server.js - Borrow interface → Express API: GET borrows
public/script.js - Borrow interface → Express API: POST borrow
public/script.js - Borrow interface → Express API: DELETE borrow
public/script.js - Express API → Borrow model: queries and updates
server.js - Express API → MongoDB: connects and persists
server.js