How arun-kumarravi/shopping works
Mini Shopping App is a Flask storefront: a visitor views products, adds a product to the cart, then views cart contents. The app reads and writes SQLite directly and renders separate storefront and cart templates. Database setup exists in both the app’s startup initializer and the standalone models script. The map covers runtime behavior; deployment and CI tools are excluded. Relationships are based on the provided app source and README; templates and deployment configuration were not sampled.
Main entry points: app.py Flask app · models.py Model setup script · index.html Storefront template · cart.html Cart template
Components 10
Web experience
- Flask app
app/app.py - Storefront template
app/templates/index.html - Cart template
app/templates/cart.html
Shopping flow
- Product listing
app/app.py - Add to cart
app/app.py - Cart view
app/app.py
Persistence
- SQLite database
- Database initializer
app/app.py - Model setup script
app/models.py
Other components
- Visitor
Connections 13
- Visitor → Flask app: requests pages
app/app.py - Flask app → Product listing: routes /
app/app.py - Flask app → Add to cart: routes /add
app/app.py - Flask app → Cart view: routes /cart
app/app.py - Product listing → SQLite database: reads products
app/app.py - Product listing → Storefront template: renders
app/app.py - Add to cart → SQLite database: inserts cart item
app/app.py - Add to cart → Product listing: redirects to
app/app.py - Cart view → SQLite database: reads cart items
app/app.py - Cart view → Cart template: renders
app/app.py - Flask app → Database initializer: runs at startup
app/app.py - Database initializer → SQLite database: creates and seeds
app/app.py - Model setup script → SQLite database: creates and seeds
app/models.py