How ajays0708/books works
Author & Title Manager is a Flask web app for maintaining author profiles and book titles, including multi-author royalty data. Users interact with the browser UI, which calls Flask API endpoints; the backend validates and processes requests against MongoDB, then returns JSON for the UI to refresh lists, forms, and author-specific title results. The README documents health checks and orphan-title cleanup; source excerpts only partially expose backend routes, so unsampled links are not inferred.
Main entry points: app.py Flask application · script.js UI and API client · index.html Manager page · style.css Responsive styling
Components 12
Browser interface
- Manager page
templates/index.html - UI and API client
static/script.js - Responsive styling
static/style.css
Flask API
- Flask application
app.py - Author management
app.py - Title management
app.py - Titles by author
app.py - Health check
app.py
MongoDB data
- MongoDB
- Authors collection
- Titles collection
Other components
- User
Connections 19
- User → Manager page: uses
README.md - Manager page → UI and API client: loads
README.md - UI and API client → Responsive styling: displays with
README.md - UI and API client → Flask application: calls API
static/script.js - Flask application → Author management: routes author requests
app.py - Flask application → Title management: routes title requests
app.py - Flask application → Titles by author: routes author query
app.py - Flask application → Health check: routes health check
README.md - Author management → MongoDB: uses
- Title management → MongoDB: uses
app.py - Titles by author → MongoDB: queries
app.py - MongoDB → Authors collection: stores
README.md - MongoDB → Titles collection: stores
README.md - Author management → Authors collection: reads and writes
app.py - Author management → Titles collection: cleans orphaned titles
app.py - Title management → Titles collection: reads and writes
app.py - Title management → Authors collection: validates authors
app.py - Titles by author → Titles collection: filters titles
app.py - Titles by author → Authors collection: joins author details
app.py