How husaindaoud/brnadbags works
This is a women’s fashion catalog and inquiry-commerce application: shoppers browse and filter products, build a locally stored inquiry cart, and send an inquiry through WhatsApp rather than paying online. Administrators manage catalog content and settings, and can review orders and reporting. The React client calls a FastAPI API backed by SQLAlchemy models and a relational database. The README documents several capabilities whose individual handlers were not sampled; those are represented at their existing router or page-directory paths, with links limited to documented or indexed evidence.
Main entry points: api.js API Client · database.py SQL Database · main.py FastAPI Application · App.jsx Store Pages
Components 25
Public Storefront
- Store Pages
frontend/src/App.jsx - Browse Products
frontend/src/pages - Product Details
frontend/src/pages/ProductDetailPage.jsx - Inquiry Cart
frontend/src/context/CartContext.jsx - Inquiry Checkout
frontend/src/pages/CheckoutPage.jsx
Admin Management
- Admin Dashboard
frontend/src/pages/admin - Product Editor
frontend/src/pages/admin/ProductFormPage.jsx - Reports and Analytics
frontend/src/pages/admin/ReportsPage.jsx
API and Domain
- FastAPI Application
backend/app/main.py - Catalog Management
backend/app/routers - Orders and Promos
backend/app/routers/orders.py - Analytics and Reports
backend/app/routers/reports.py - Authentication Routes
backend/app/routers/auth.py - JWT Security
backend/app/core/security.py - Store Domain Models
backend/app/models - Product Model
backend/app/models/product.py - Order Model
backend/app/models/order.py
Shared Runtime
- API Client
frontend/src/services/api.js - Admin Authentication
frontend/src/context/AuthContext.jsx - Store Settings
frontend/src/context/SettingsContext.jsx - SQL Database
backend/app/core/database.py - Order Email
backend/app/core/email.py
Other components
- Shopper
- Administrator
Connections 30
- Shopper → Store Pages: browses
README.md - Store Pages → Browse Products: routes to
frontend/src/App.jsx - Store Pages → Product Details: routes to
frontend/src/App.jsx - Store Pages → Inquiry Checkout: routes to
frontend/src/App.jsx - Browse Products → API Client: requests catalog
frontend/src/pages/SearchPage.jsx - Product Details → Inquiry Cart: adds items
frontend/src/pages/ProductDetailPage.jsx - Inquiry Cart → Inquiry Checkout: provides items
README.md - Inquiry Checkout → WhatsApp: sends inquiry
README.md - Inquiry Checkout → API Client: submits order
frontend/src/pages/CheckoutPage.jsx - Administrator → Admin Dashboard: manages store
README.md - Admin Dashboard → Product Editor: routes to
frontend/src/App.jsx - Admin Dashboard → Reports and Analytics: routes to
frontend/src/App.jsx - Admin Dashboard → API Client: calls API
frontend/src/pages/admin/ReportsPage.jsx - Admin Authentication → API Client: authenticates through
frontend/src/context/AuthContext.jsx - Store Settings → API Client: loads settings
frontend/src/context/SettingsContext.jsx - API Client → FastAPI Application: HTTP requests
README.md - FastAPI Application → Catalog Management: registers routes
backend/app/main.py - FastAPI Application → Orders and Promos: registers routes
backend/app/main.py - FastAPI Application → Analytics and Reports: registers routes
backend/app/main.py - FastAPI Application → Authentication Routes: registers routes
backend/app/main.py - Authentication Routes → JWT Security: uses tokens
backend/app/routers/auth.py - Catalog Management → SQL Database: queries data
backend/app/routers/products.py - Orders and Promos → SQL Database: queries data
backend/app/routers/orders.py - Analytics and Reports → SQL Database: queries data
backend/app/routers/reports.py - JWT Security → SQL Database: loads admin
backend/app/core/security.py - Product Model → SQL Database: maps tables
backend/app/models/product.py - Order Model → SQL Database: maps tables
backend/app/models/order.py - Catalog Management → Store Domain Models: uses catalog entities
backend/app/routers/products.py - Orders and Promos → Order Model: creates orders
backend/app/routers/orders.py - Orders and Promos → Order Email: sends notifications
backend/app/routers/orders.py