How duonghuuthanh/cs2401saleapp works
This is a small Flask product-catalog application. A visitor requests the catalog; its route loads categories and products through the DAO, which queries the SQLAlchemy models, then renders the catalog template. The same route module serves login and registration pages, though no account-processing flow is shown. A separate Flask-Admin interface exposes category and product management. The application configures MySQL. Evidence is limited to the README and the shown source excerpts; no additional behavior is inferred.
Main entry points: index.py Web routes · models.py Category and product models · dao.py Catalog queries · admin.py Admin interface
Components 10
Web interface
- Web routes
saleapp/eapp/index.py - Catalog page
saleapp/eapp/templates/index.html - Login page
saleapp/eapp/templates/login.html - Registration page
saleapp/eapp/templates/register.html
Catalog data
- Catalog queries
saleapp/eapp/dao.py - Category and product models
saleapp/eapp/models.py - MySQL database
Admin management
- Admin interface
saleapp/eapp/admin.py - Flask and database setup
saleapp/eapp/__init__.py
Other components
- Visitor
Connections 9
- Visitor → Web routes: requests pages
saleapp/eapp/index.py - Web routes → Catalog queries: loads catalog
saleapp/eapp/index.py - Web routes → Catalog page: renders catalog
saleapp/eapp/index.py - Web routes → Login page: renders login
saleapp/eapp/index.py - Web routes → Registration page: renders registration
saleapp/eapp/index.py - Catalog queries → Category and product models: queries models
saleapp/eapp/dao.py - Category and product models → MySQL database: maps entities
saleapp/eapp/models.py - Flask and database setup → MySQL database: configures connection
saleapp/eapp/__init__.py - Admin interface → Category and product models: registers model views
saleapp/eapp/admin.py