How itzap77/sambhav works
This is a Flask-based storefront. A shopper loads the page, browses products, adds items to a session-backed cart, and submits checkout; the backend validates stock and records an order while reducing inventory in SQLite. The main runtime is concentrated in app.py and main.js. The template and database schema are present in the tree but were not excerpted, so their internal wiring and data model are not expanded here; no external payment integration is shown.
Main entry points: main.js Store Interactions · app.py Cart API · store.db Store Database · index.html Store Page
Components 8
Storefront
- Store Page
fullstack_store/templates/index.html - Store Interactions
fullstack_store/static/js/main.js
Store API
- Product Catalog
fullstack_store/app.py - Cart API
fullstack_store/app.py - Session Cart
fullstack_store/app.py - Checkout
fullstack_store/app.py
Store Data
- Store Database
fullstack_store/database/store.db
Other components
- Shopper
Connections 13
- Shopper → Store Page: requests page
- Store Page → Store Interactions: renders interactions
- Store Interactions → Product Catalog: fetches products
fullstack_store/static/js/main.js - Product Catalog → Store Database: reads products
fullstack_store/app.py - Product Catalog → Store Interactions: returns products
fullstack_store/app.py - Store Interactions → Cart API: adds and views
fullstack_store/static/js/main.js - Cart API → Session Cart: updates and reads
fullstack_store/app.py - Cart API → Store Database: checks and reads products
fullstack_store/app.py - Cart API → Store Interactions: returns cart data
fullstack_store/app.py - Store Interactions → Checkout: submits checkout
fullstack_store/static/js/main.js - Checkout → Session Cart: reads and clears
fullstack_store/app.py - Checkout → Store Database: records order and updates stock
fullstack_store/app.py - Checkout → Store Interactions: returns order result
fullstack_store/app.py