Claude
|
fa4884bdb4
|
Add store-credit web app (FastAPI + SQLite)
- main.py: single-file backend with Member, LedgerEntry, Product models;
endpoints for register, list/search members, topup (cashier), charge (bar,
PIN-verified), transaction history, printable HTML statement, product CRUD.
All monetary values stored as integers (pence). bcrypt PIN hashing.
Admin-tunable CONFIG dict at top of file.
- static/index.html + style.css + app.js: three-view SPA (Members, Cashier,
Bar) with member search, product search with member-price support, and
XSS-safe rendering throughout.
- requirements.txt: fastapi, uvicorn, bcrypt only.
https://claude.ai/code/session_01JuRTR5Xjx8emQsyerBgGU7
|
2026-05-30 05:21:01 +00:00 |
|