How xandrine-commits/ledgerly works
Ledgerly is a small-business management web app: users log in, then manage customers, products, and orders and view dashboard and sales information. The vanilla-JavaScript frontend calls a FastAPI backend, which validates requests and applies role checks. Although the README describes SQL/SQLite, the sampled backend stores records in process-local Python lists, so data is not shown as persistent. The graph preserves documented product areas; unsampled page wiring and detailed dashboard behavior are not inferred.
Main entry points: main.py FastAPI endpoints · app.js Management client · login.html Login page · login.js Login client
Components 19
Web interface
- Login page
Frontend/login.html - Login client
Frontend/login.js - Management client
Frontend/app.js - Dashboard
Frontend/index.html - Customer views
Frontend/customers.html - Product views
Frontend/products.html - Order views
Frontend/orders.html - Sales overview
Frontend/sales.html
Identity and access
- Login and registration
main.py - Password hashing
auth/auth.py - JWT tokens
auth/jwt.py - Token and role checks
main.py
Business operations
- FastAPI endpoints
main.py - Customer CRUD
main.py - Product CRUD
main.py - Order CRUD
main.py - Request validation
main.py
Application state
- In-memory records
main.py
Other components
- Business user
Connections 20
- Business user → Login page: opens
README.md - Login page → Login client: submits credentials
Frontend/login.js - Login client → Login and registration: posts login
Frontend/login.js - Login and registration → Password hashing: verifies password
main.py - Login and registration → JWT tokens: creates token
main.py - Business user → Management client: uses management
README.md - Management client → FastAPI endpoints: sends HTTP requests
README.md - FastAPI endpoints → Request validation: validates requests
README.md - FastAPI endpoints → Token and role checks: checks access
main.py - Token and role checks → JWT tokens: decodes tokens
main.py - FastAPI endpoints → Login and registration: handles auth routes
main.py - FastAPI endpoints → Customer CRUD: routes customer CRUD
README.md - FastAPI endpoints → Product CRUD: routes product CRUD
README.md - FastAPI endpoints → Order CRUD: routes order CRUD
README.md - Customer CRUD → In-memory records: reads and writes
main.py - Product CRUD → In-memory records: reads and writes
main.py - Order CRUD → In-memory records: reads and writes
main.py - Management client → Customer CRUD: requests customer data
Frontend/app.js - Management client → Product CRUD: requests product data
Frontend/app.js - Management client → Order CRUD: submits order data
Frontend/app.js