How gumiho0812/ban_vot_cau_long works
This is a Tkinter badminton-racket sales and management application. Customers register or log in, browse and filter products, build a cart and place orders, then view invoices; staff log in to manage products and access invoice management and sales statistics. JSON files provide local persistence, and a separate crawler can collect Yonex product listings. The README is empty, and excerpts omit parts of the customer and invoice flows, so those links are limited to behavior visible in the supplied evidence.
Main entry points: store.py JSON store · main.py Login and routing · gui_customer.py Product browsing and cart · crawl.py Yonex product crawler
Components 15
Access
- Login and routing
caulong/main.py - Authentication and roles
caulong/auth.py - Customer registration
caulong/gui_register.py
Catalog and sourcing
- Product management
caulong/gui_admin.py - Product browsing and cart
caulong/gui_customer.py - Yonex product crawler
caulong/crawl.py
Sales and invoices
- Orders and sales statistics
caulong/gui_invoice.py
JSON persistence
- JSON store
caulong/store.py - Racket catalog
caulong/data/sanpham_yonex.JSON - Employee accounts
caulong/data/nhanvien.JSON - Customer accounts
caulong/data/khachhang.JSON - Orders
caulong/data/donhang.JSON
Other components
- Customer
- Staff
- Yonex product website
Connections 21
- Customer → Login and routing: opens app
- Staff → Login and routing: opens app
- Login and routing → JSON store: initializes stores
- Login and routing → Authentication and roles: checks credentials
- Authentication and roles → JSON store: reads accounts
- JSON store → Employee accounts: reads and writes
- JSON store → Customer accounts: reads and writes
- JSON store → Racket catalog: reads and writes
- Login and routing → Customer registration: opens registration
- Customer registration → JSON store: checks and creates account
- Login and routing → Product management: routes staff
- Login and routing → Product browsing and cart: routes customer
- Product management → JSON store: manages products
- Product browsing and cart → JSON store: reads catalog
- Product browsing and cart → Orders: creates orders
- Product browsing and cart → Orders and sales statistics: opens invoices
- Product management → Orders and sales statistics: opens statistics
- Orders and sales statistics → Orders: reads and updates
- Yonex product crawler → Yonex product website: fetches listings
- Yonex product crawler → JSON store: creates products
- Yonex product crawler → Racket catalog: writes catalog