How fenil5456/cozynest-azure-three-tier works
CozyNest is a Flask home-decor storefront with local sample-data mode and optional Azure-backed products, images, and order processing. Shoppers browse products, add items to a session cart, submit checkout details, and see a confirmation; checkout delegates order confirmation to a separate VM API when configured. The graph preserves product/catalog, cart, checkout, order, and image-serving stages. Source excerpts support these calls, but database details, templates, and Azure setup beyond the shown paths were not inspected, so some storage relationships are omitted.
Main entry points: app.py Catalog access · templates Storefront templates · order_api.py Order processing API · generate_images.py Placeholder image generator
Components 18
Storefront
- Flask storefront
cozynest/app.py - Product browsing
cozynest/app.py - Product detail
cozynest/app.py - Storefront templates
cozynest/templates
Catalog and state
- Session cart
cozynest/app.py - Cart totals
cozynest/app.py - Catalog access
cozynest/app.py - Local sample products
cozynest/app.py - Azure SQL
- Azure Key Vault
Order processing
- Checkout
cozynest/app.py - Order API client
cozynest/app.py - Order processing API
vm-order-api/order_api.py - Order confirmation
cozynest/app.py
Product media
- Azure Blob Storage
- Image serving
cozynest/app.py - Placeholder image generator
cozynest/generate_images.py
Other components
- Shopper
Connections 22
- Shopper → Flask storefront: uses
cozynest/app.py - Flask storefront → Product browsing: routes to
cozynest/app.py - Product browsing → Catalog access: loads products
cozynest/app.py - Product browsing → Storefront templates: renders pages
cozynest/app.py - Shopper → Product detail: opens product
cozynest/app.py - Product detail → Catalog access: loads product
cozynest/app.py - Shopper → Session cart: updates
cozynest/app.py - Cart totals → Session cart: reads
cozynest/app.py - Cart totals → Catalog access: looks up items
cozynest/app.py - Checkout → Cart totals: calculates total
cozynest/app.py - Checkout → Order API client: submits order
cozynest/app.py - Order API client → Order processing API: posts order
cozynest/app.py - Order processing API → Order API client: returns confirmation
vm-order-api/order_api.py - Checkout → Order confirmation: records result
cozynest/app.py - Order confirmation → Storefront templates: renders success
cozynest/app.py - Catalog access → Local sample products: reads locally
cozynest/app.py - Catalog access → Azure SQL: queries when configured
cozynest/app.py - Catalog access → Azure Key Vault: gets secrets
cozynest/app.py - Image serving → Azure Blob Storage: downloads image
cozynest/app.py - Image serving → Azure Key Vault: uses credentials
cozynest/app.py - Shopper → Image serving: requests image
cozynest/app.py - Placeholder image generator → Storefront templates: creates placeholders
cozynest/generate_images.py