How yongnaykhouch/btn_ltw works
This is a Flask technology-and-appliance commerce site. Customers browse or search products, manage accounts and a cart, then place and track orders; administrators manage catalog, orders, users, and flash sales. The README also identifies installments, reviews, and chatbot support. The graph separates the web app, domain helpers, API, and persisted state. Several links among Python modules are dashed because the supplied excerpts and index do not establish the exact calls; unsampled routes and templates are represented at their existing paths.
Main entry points: app.py Web application · templates Storefront pages · chatbot.py Shopping chatbot · api.py REST API
Components 17
Storefront and administration
- Web application
app.py - Storefront pages
templates - Admin pages
templates/Admin.html - Support chat UI
templates/partials/support_chat_widget.html - Additional Flask app
btn.py
Commerce capabilities
- Product search
search_engine.py - Extra specifications
product_extra_specs.py - Flash sale logic
flash_sales.py - Shopping chatbot
chatbot.py - Sale countdown
static/flash_sale.js - Live reviews
static/review-live.js
JSON API
- REST API
api.py - Python API client
api_client.py
Persistent state
- SQLite commerce data
users.db
Other components
- Customer
- Administrator
- Optional chat service
Connections 19
- Customer → Web application: browses and orders
README.md - Administrator → Web application: manages commerce
README.md - Web application → Storefront pages: renders pages
README.md - Web application → Admin pages: renders admin
README.md - Web application → SQLite commerce data: reads and writes
app.py - Additional Flask app → SQLite commerce data: reads and writes
- Web application → Product search: uses search
app.py - Web application → Extra specifications: uses specs
app.py - Web application → Flash sale logic: checks sales
app.py - Web application → Shopping chatbot: handles chat
app.py - Shopping chatbot → Product search: searches products
chatbot.py - Shopping chatbot → Extra specifications: reads specifications
chatbot.py - Web application → REST API: registers API
app.py - Python API client → REST API: sends requests
api_client.py - REST API → SQLite commerce data: reads and writes
api.py - Storefront pages → Sale countdown: shows countdown
- Storefront pages → Live reviews: refreshes reviews
- Storefront pages → Support chat UI: includes widget
- Support chat UI → Optional chat service: connects optionally
README.md