How upputhotasairam369-hub/rao-fashion-store works
RAO is a fashion storefront with a FastAPI commerce backend. The primary journey is browsing and filtering products, selecting a variant, managing a bag, checking out with a simulated payment, and viewing an order. Account access and administration are distinct supporting flows; editorial content is another storefront capability. The graph preserves those domain stages and the catalog, commerce, and persistence layers. Some backend routing and service wiring is unsampled, so those links are marked unverified rather than inferred as confirmed calls.
Main entry points: routes.py API routes · client.ts API client and session · __init__.py Commerce data models · Layout.tsx Storefront shell
Components 20
Storefront
- Storefront shell
frontend/src/components/Layout.tsx - Home and editorial
frontend/src/pages/Home.tsx - Journal pages
frontend/src/pages/Editorial.tsx - Catalog browsing
frontend/src/pages/Catalog.tsx - Product details
frontend/src/pages/Product.tsx - Account and orders
frontend/src/pages/Commerce.tsx - Store administration
frontend/src/pages/Admin.tsx - Taxonomy and editorial admin
frontend/src/pages/AdminContent.tsx - API client and session
frontend/src/api/client.ts - Session UI state
frontend/src/store/ui.ts
API and domain
- FastAPI application
backend/app/main.py - API routes
backend/app/api/routes.py - Catalog service
backend/app/services/catalog.py - Catalog queries
backend/app/repositories/catalog.py - Commerce operations
backend/app/services/commerce.py - Editorial service
backend/app/services/editorial.py
Persistence
- Commerce data models
backend/app/models/__init__.py - Database sessions
backend/app/core/database.py
Integrations
- Test payment provider
backend/app/integrations/payments.py
Other components
- Shopper
Connections 28
- Shopper → Storefront shell: uses storefront
README.md - Storefront shell → API client and session: loads cart
frontend/src/components/Layout.tsx - Storefront shell → Session UI state: reads session
frontend/src/components/Layout.tsx - API client and session → Session UI state: updates session
frontend/src/api/client.ts - Shopper → Catalog browsing: browses products
README.md - Shopper → Product details: selects variants
README.md - Shopper → Account and orders: checks out
README.md - Shopper → Store administration: administers store
README.md - Home and editorial → Journal pages: opens stories
- Store administration → Taxonomy and editorial admin: renders managers
frontend/src/pages/Admin.tsx - Catalog browsing → API client and session: requests catalog
- Product details → API client and session: requests product
- Account and orders → API client and session: submits commerce
frontend/src/pages/Commerce.tsx - Store administration → API client and session: submits admin changes
frontend/src/pages/Admin.tsx - API client and session → API routes: sends API requests
README.md - FastAPI application → API routes: registers router
backend/app/main.py - API routes → Catalog service: dispatches catalog
- API routes → Commerce operations: dispatches commerce
- API routes → Editorial service: dispatches editorial
- Catalog service → Catalog queries: queries products
backend/app/services/catalog.py - Catalog queries → Commerce data models: reads models
backend/app/repositories/catalog.py - Commerce operations → Commerce data models: updates commerce data
backend/app/services/commerce.py - Editorial service → Commerce data models: uses domain data
- API routes → Test payment provider: verifies payments
- Commerce data models → Database sessions: uses mapped base
backend/app/models/__init__.py - FastAPI application → Database sessions: checks connection
backend/app/main.py - Database sessions → FastAPI application: configures engine
backend/app/core/database.py - Test payment provider → API routes: returns verification