How tripti-gupta700/backend-mini-projects works
This repository is a collection of six independent Express learning projects, not one composed backend. A client uses each project’s endpoints to manage notes, files, users, quotes, or short links; a separate logging service records requests and serves recent logs. Most projects persist state in local JSON or text files. The graph separates each API’s main behavior from its storage or internal logging stages. The README documents the capabilities; the sampled source shows their implementation in single files.
Main entry points: basic-auth.js Signup and login · notes-api.js Notes CRUD · file-manager-api.js File operations · quotes-api.js Quote queries and creation
Components 18
Notes API
- Notes CRUD
notes-api.js - Notes JSON store
notes-api.js
File Manager API
- File operations
file-manager-api.js - Server files
file-manager-api.js
Authentication
- Signup and login
basic-auth.js - Password hashing
basic-auth.js - Users JSON store
basic-auth.js - Protected route middleware
basic-auth.js
Quotes API
- Quote queries and creation
quotes-api.js - Quotes JSON store
quotes-api.js
Request Logging
- Request middleware
logging-system.js - Log event emitter
logging-system.js - Append log stream
logging-system.js - Request log file
logging-system.js - Recent logs endpoint
logging-system.js
URL Shortener
- Shorten and redirect
url-shortener.js - URL mappings JSON
url-shortener.js
Other components
- API client
Connections 19
- API client → Notes CRUD: uses CRUD
README - Notes CRUD → Notes JSON store: reads and writes
notes-api.js - API client → File operations: manages files
README - File operations → Server files: reads and writes
file-manager-api.js - API client → Signup and login: signs up or logs in
README - Signup and login → Password hashing: hashes passwords
basic-auth.js - Signup and login → Users JSON store: reads and writes
basic-auth.js - API client → Protected route middleware: requests protected route
basic-auth.js - Protected route middleware → Signup and login: continues to route
basic-auth.js - API client → Quote queries and creation: queries or adds quotes
README - Quote queries and creation → Quotes JSON store: reads and writes
quotes-api.js - API client → Request middleware: sends request
logging-system.js - Request middleware → Log event emitter: emits entry
logging-system.js - Log event emitter → Append log stream: dispatches entry
logging-system.js - Append log stream → Request log file: appends entry
logging-system.js - API client → Recent logs endpoint: requests recent logs
logging-system.js - Recent logs endpoint → Request log file: reads log file
logging-system.js - API client → Shorten and redirect: shortens or follows URL
README - Shorten and redirect → URL mappings JSON: reads and writes
url-shortener.js