How souravdasz/bablu-s-saree works
Saree App is a FastAPI storefront with an admin-managed product catalog. The primary workflow is admin sign-in, product creation or maintenance (including image upload), followed by customers browsing, filtering, and viewing products and categories. The graph also includes the documented about/contact pages, session configuration, database setup, and image storage. Source excerpts show the route-to-model and storage calls; template rendering is documented in route code. Some integrations and runtime wiring are not sampled, so unsupported links are omitted.
Main entry points: main.py FastAPI app · product.py Product model · admin.py Product management · templates Jinja templates
Components 18
Application
- FastAPI app
app/main.py - Jinja templates
app/templates
Admin catalog
- Admin login
app/routers/admin.py - Session guard
app/core/auth.py - Admin dashboard
app/routers/admin.py - Product management
app/routers/admin.py
Customer storefront
- About and contact
app/routers/about_us.py - Storefront pages
app/routers/home.py - Product browsing
app/routers/home.py - Category browsing
app/routers/home.py - Product details
app/routers/home.py
Catalog data
- Product model
app/models/product.py - SQL database
app/database.py
Configuration and storage
- App configuration
app/core/config.py - Image storage
app/services/storage.py
Other components
- Shop visitor
- Administrator
- Supabase storage
Connections 28
- Shop visitor → FastAPI app: requests pages
README.md - Administrator → FastAPI app: requests admin
README.md - FastAPI app → About and contact: registers router
app/main.py - FastAPI app → Admin login: registers router
app/main.py - FastAPI app → Storefront pages: registers router
app/main.py - Admin login → App configuration: checks credentials
app/routers/admin.py - Admin login → Session guard: protects routes
app/routers/admin.py - Product management → Session guard: checks session
app/routers/admin.py - Admin dashboard → Product model: counts products
app/routers/admin.py - Product management → Product model: queries and updates
app/routers/admin.py - Storefront pages → Jinja templates: renders pages
app/routers/home.py - About and contact → Jinja templates: renders pages
app/routers/about_us.py - Admin login → Jinja templates: renders login
app/routers/admin.py - Admin dashboard → Jinja templates: renders dashboard
app/routers/admin.py - Product management → Jinja templates: renders catalog
app/routers/admin.py - Storefront pages → Product browsing: serves listings
app/routers/home.py - Product browsing → Product model: queries products
app/routers/home.py - Category browsing → Product model: groups products
app/routers/home.py - Product details → Product model: queries product
app/routers/home.py - Product model → SQL database: uses ORM base
app/models/product.py - FastAPI app → SQL database: creates tables
app/main.py - Product management → Image storage: uploads and deletes
app/routers/admin.py - Image storage → App configuration: reads storage settings
app/services/storage.py - Image storage → Supabase storage: uploads and removes
app/services/storage.py - FastAPI app → App configuration: loads session secret
app/main.py - Product browsing → Image storage: formats image URLs
app/routers/home.py - Product management → SQL database: opens database session
app/routers/admin.py - Product browsing → SQL database: opens database session
app/routers/home.py