How spydrco/spydr-store works
SPYDR is a small Flask storefront. A shopper browses the product catalog, adds a selected item to the session cart, reviews the cart, and submits checkout; cash-on-delivery clears the cart and displays confirmation. Routes and product data are all in app.py. The source shows an online-payment placeholder, not a working payment integration. Template links and styling details are not inferred because those files were not sampled.
Main entry points: app.py Checkout route · shop.html Shop page · cart.html Cart page · checkout.html Checkout page
Components 11
Storefront
- Shop route
app.py - Product catalog
app.py - Shop page
shop.html
Cart
- Add-to-cart route
app.py - Session cart
app.py - Cart route
app.py - Cart page
cart.html
Checkout
- Checkout route
app.py - Checkout page
checkout.html - Success page
success.html
Other components
- Shopper
Connections 15
- Shopper → Shop route: requests shop
- Shop route → Product catalog: filters products
- Shop route → Shop page: renders products
- Shopper → Add-to-cart route: submits item
- Add-to-cart route → Product catalog: looks up product
- Add-to-cart route → Session cart: updates session
- Add-to-cart route → Shopper: redirects to cart
- Shopper → Cart route: requests cart
- Cart route → Session cart: reads session
- Cart route → Cart page: renders total
- Shopper → Checkout route: requests checkout
- Checkout route → Checkout page: renders form
- Shopper → Checkout route: submits payment choice
- Checkout route → Session cart: clears on COD
- Checkout route → Success page: renders result