# jaswanth5021/ubhayafashions architecture

> Architecture diagram of the GitHub repository jaswanth5021/ubhayafashions, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jaswanth5021/ubhayafashions
- Repository: https://github.com/jaswanth5021/ubhayafashions

## Overview

Ladies Dress Store is a server-rendered ASP.NET Core MVC storefront backed by a separate Web API, SQL Server, and Entity Framework Core. Customers browse products, manage accounts and addresses, build a cart, and place orders through cash-on-delivery or Razorpay payment flows; administrators manage store operations. The README also documents email/password and Google/Facebook sign-in. Edges below are limited to relationships visible in excerpts, the SOURCE INDEX, or README; unsampled capability links are omitted where no caller is evidenced.

Main entry points: [`backend/Data/ApplicationDbContext.cs`](https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Data/ApplicationDbContext.cs) (EF data context), [`frontend/Services/ApiService.cs`](https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Services/ApiService.cs) (Store API client), [`backend/Controllers/PaymentsController.cs`](https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/PaymentsController.cs) (Orders and payments), [`frontend/Controllers/OrdersController.cs`](https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Controllers/OrdersController.cs) (Checkout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Customer storefront"]
  node_account_ui["Account"]
  node_product_ui["Product browsing"]
  node_cart_ui["Cart<br/>[CartController.cs]"]
  node_checkout_ui["Checkout"]
  node_product_models["Product view models"]
  node_api_service["Store API client<br/>[ApiService.cs]"]
end

subgraph group_backend["Store API"]
  node_api["Store API<br/>[Program.cs]"]
  node_auth["Customer identity<br/>[AuthController.cs]"]
  node_catalog["Product catalog"]
  node_db_context["EF data context"]
end

subgraph group_commerce["Commerce operations"]
  node_payments["Orders and payments"]
  node_orders_api["Order endpoints"]
end

subgraph group_admin["Administration"]
  node_admin_ui["Admin console<br/>[AdminController.cs]"]
  node_admin_client["Admin API client<br/>[AdminApiService.cs]"]
  node_admin_catalog["Catalog management"]
  node_admin_auth["Admin identity"]
end

node_shopper(("Shopper"))
node_sql[("SQL Server")]
node_razorpay["Razorpay"]
node_email["Email delivery"]

node_shopper -->|"uses"| node_account_ui
node_shopper -->|"browses"| node_product_ui
node_shopper -->|"manages cart"| node_cart_ui
node_shopper -->|"checks out"| node_checkout_ui
node_account_ui -->|"requests account data"| node_api_service
node_product_ui -->|"requests catalog"| node_api_service
node_cart_ui -->|"requests products"| node_api_service
node_checkout_ui -->|"creates and verifies orders"| node_api_service
node_api_service -->|"maps responses"| node_product_models
node_admin_ui -->|"delegates requests"| node_admin_client
node_api_service -.->|"HTTP requests"| node_api
node_admin_client -.->|"HTTP requests"| node_api
node_api -->|"configures"| node_db_context
node_auth -->|"reads and writes identity"| node_db_context
node_catalog -->|"reads catalog"| node_db_context
node_admin_catalog -->|"updates catalog"| node_db_context
node_payments -->|"reads and writes orders"| node_db_context
node_db_context -->|"persists data"| node_sql
node_payments -->|"creates and verifies payment"| node_razorpay
node_checkout_ui -.->|"loads order history"| node_orders_api
node_payments -.->|"sends confirmation"| node_email
node_admin_ui -->|"authenticates admins"| node_admin_auth
node_admin_auth -->|"reads and writes admins"| node_db_context

click node_account_ui "https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Controllers/AccountController.cs"
click node_product_ui "https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Controllers/ProductsController.cs"
click node_cart_ui "https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Controllers/CartController.cs"
click node_checkout_ui "https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Controllers/OrdersController.cs"
click node_product_models "https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Models/ProductViewModel.cs"
click node_api_service "https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Services/ApiService.cs"
click node_admin_ui "https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Controllers/AdminController.cs"
click node_admin_client "https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Services/AdminApiService.cs"
click node_api "https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Program.cs"
click node_auth "https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/AuthController.cs"
click node_catalog "https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/ProductsController.cs"
click node_admin_catalog "https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/AdminProductsController.cs"
click node_payments "https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/PaymentsController.cs"
click node_orders_api "https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/OrdersController.cs"
click node_db_context "https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Data/ApplicationDbContext.cs"
click node_email "https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Services/OrderConfirmationEmailService.cs"
click node_admin_auth "https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/AdminAuthController.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_account_ui,node_product_ui,node_cart_ui,node_checkout_ui,node_product_models,node_api_service toneBlue
class node_api,node_auth,node_catalog,node_db_context,node_sql toneAmber
class node_payments,node_orders_api toneMint
class node_admin_ui,node_admin_client,node_admin_catalog,node_admin_auth toneRose
class node_shopper,node_razorpay toneIndigo
class node_email toneTeal
```

## Components

### Customer storefront

- [Account](https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Controllers/AccountController.cs): `frontend/Controllers/AccountController.cs`
- [Product browsing](https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Controllers/ProductsController.cs): `frontend/Controllers/ProductsController.cs`
- [Cart](https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Controllers/CartController.cs): `frontend/Controllers/CartController.cs`
- [Checkout](https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Controllers/OrdersController.cs): `frontend/Controllers/OrdersController.cs`
- [Product view models](https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Models/ProductViewModel.cs): `frontend/Models/ProductViewModel.cs`
- [Store API client](https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Services/ApiService.cs): `frontend/Services/ApiService.cs`

### Store API

- [Store API](https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Program.cs): `backend/Program.cs`
- [Customer identity](https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/AuthController.cs): `backend/Controllers/AuthController.cs`
- [Product catalog](https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/ProductsController.cs): `backend/Controllers/ProductsController.cs`
- [EF data context](https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Data/ApplicationDbContext.cs): `backend/Data/ApplicationDbContext.cs`

### Commerce operations

- [Orders and payments](https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/PaymentsController.cs): `backend/Controllers/PaymentsController.cs`
- [Order endpoints](https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/OrdersController.cs): `backend/Controllers/OrdersController.cs`

### Administration

- [Admin console](https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Controllers/AdminController.cs): `frontend/Controllers/AdminController.cs`
- [Admin API client](https://github.com/jaswanth5021/ubhayafashions/blob/master/frontend/Services/AdminApiService.cs): `frontend/Services/AdminApiService.cs`
- [Catalog management](https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/AdminProductsController.cs): `backend/Controllers/AdminProductsController.cs`
- [Admin identity](https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Controllers/AdminAuthController.cs): `backend/Controllers/AdminAuthController.cs`

### Other components

- **Shopper**
- **SQL Server**
- **Razorpay**
- [Email delivery](https://github.com/jaswanth5021/ubhayafashions/blob/master/backend/Services/OrderConfirmationEmailService.cs): `backend/Services/OrderConfirmationEmailService.cs`

## Connections

- Shopper → Account: uses
- Shopper → Product browsing: browses
- Shopper → Cart: manages cart
- Shopper → Checkout: checks out
- Account → Store API client: requests account data (evidence: `frontend/Controllers/AccountController.cs`)
- Product browsing → Store API client: requests catalog (evidence: `frontend/Controllers/ProductsController.cs`)
- Cart → Store API client: requests products (evidence: `frontend/Controllers/CartController.cs`)
- Checkout → Store API client: creates and verifies orders (evidence: `frontend/Controllers/OrdersController.cs`)
- Store API client → Product view models: maps responses (evidence: `frontend/Services/ApiService.cs`)
- Admin console → Admin API client: delegates requests (evidence: `frontend/Controllers/AdminController.cs`)
- Store API client → Store API: HTTP requests (evidence: `frontend/Services/ApiService.cs`)
- Admin API client → Store API: HTTP requests (evidence: `frontend/Services/AdminApiService.cs`)
- Store API → EF data context: configures (evidence: `backend/Program.cs`)
- Customer identity → EF data context: reads and writes identity (evidence: `backend/Controllers/AuthController.cs`)
- Product catalog → EF data context: reads catalog (evidence: `backend/Controllers/ProductsController.cs`)
- Catalog management → EF data context: updates catalog (evidence: `backend/Controllers/AdminProductsController.cs`)
- Orders and payments → EF data context: reads and writes orders (evidence: `backend/Controllers/PaymentsController.cs`)
- EF data context → SQL Server: persists data
- Orders and payments → Razorpay: creates and verifies payment (evidence: `backend/Controllers/PaymentsController.cs`)
- Checkout → Order endpoints: loads order history (evidence: `frontend/Controllers/OrdersController.cs`)
- Orders and payments → Email delivery: sends confirmation
- Admin console → Admin identity: authenticates admins
- Admin identity → EF data context: reads and writes admins (evidence: `backend/Controllers/AdminAuthController.cs`)
