How 128ravi/amazon_app works
This is a small Flask shopping application. A user logs in to establish a session, views a hard-coded catalog, adds items to a session-backed cart, and can view the total or reach the order confirmation page, which clears the cart. Logout clears the session. There is no persistent database, payment integration, or separate order record in the available source. The graph reflects the sampled app.py; no README description or additional application source was provided.
Main entry points: app.py Flask routes · login.html Login page · home.html Catalog page · cart.html Cart page
Components 8
Shopping app
- Flask routes
app.py - Product catalog
app.py - Session cart
app.py
Page templates
- Login page
templates/login.html - Catalog page
templates/home.html - Cart page
templates/cart.html - Order page
templates/order.html
Other components
- Shopper
Connections 7
- Shopper → Flask routes: uses routes
app.py - Flask routes → Login page: renders
app.py - Flask routes → Catalog page: renders
app.py - Flask routes → Cart page: renders
app.py - Flask routes → Order page: renders
app.py - Flask routes → Product catalog: passes products
app.py - Flask routes → Session cart: reads and updates
app.py