# hoangviet2805/furnimatch architecture

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

- Interactive diagram: https://gitdiagram.com/hoangviet2805/furnimatch
- Repository: https://github.com/hoangviet2805/furnimatch

## Overview

FurniMatch is a furniture marketplace for customers and sellers, with admin operations. The principal journey is browsing products, optionally requesting a custom quotation, checking out, paying, and tracking an order; sellers manage products and revenue, while escrow supports payouts. The client also includes comparison, favorites, chat, and a 3D room planner. The graph reflects routes and backend relationships visible in excerpts or the source index; unsampled client-to-API calls are not asserted.

Main entry points: [`furnimatch-client/src/App.tsx`](https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/App.tsx) (Client router), [`FurniMatch.Api/Data/FurniMatchDbContext.cs`](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Data/FurniMatchDbContext.cs) (Marketplace database), [`FurniMatch.Api/Services/EscrowService.cs`](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Services/EscrowService.cs) (Escrow payouts), [`FurniMatch.Api/Controllers/OrdersController.cs`](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/OrdersController.cs) (Order API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Marketplace client"]
  node_app["Client router<br/>[App.tsx]"]
  node_discovery["Product discovery<br/>[Products.tsx]"]
  node_checkout["Checkout<br/>[Checkout.tsx]"]
  node_ordersui["Order tracking<br/>[Orders.tsx]"]
  node_quotesui["Quote requests"]
  node_planner["Room planner<br/>[SpacePlanner.tsx]"]
  node_social["Shopping tools"]
end

subgraph group_commerce["Commerce API"]
  node_productapi["Product catalog API"]
  node_quoteapi["Quotation API"]
  node_orderapi["Order API"]
  node_authapi["Identity API<br/>[AuthController.cs]"]
  node_reviewsapi["Reviews API"]
  node_payapi["Payment endpoints"]
end

subgraph group_operations["Seller and admin operations"]
  node_sellerops["Seller operations"]
  node_adminops["Admin operations<br/>[AdminController.cs]"]
end

subgraph group_platform["Persistence and services"]
  node_escrow["Escrow payouts<br/>[EscrowService.cs]"]
  node_email["Email service<br/>[EmailService.cs]"]
  node_database[("Marketplace database")]
end

node_customer(("Customer"))
node_seller(("Seller"))
node_sepay["SePay gateway"]

node_customer -->|"uses"| node_app
node_seller -->|"uses"| node_app
node_app -->|"routes to"| node_discovery
node_app -->|"routes to"| node_checkout
node_app -->|"routes to"| node_ordersui
node_app -->|"routes to"| node_quotesui
node_app -->|"routes to"| node_planner
node_app -->|"routes to"| node_social
node_productapi -->|"reads and writes"| node_database
node_quoteapi -->|"reads and writes"| node_database
node_orderapi -->|"reads and writes"| node_database
node_authapi -->|"reads and writes"| node_database
node_reviewsapi -->|"reads and writes"| node_database
node_adminops -->|"reads and writes"| node_database
node_adminops -->|"requests payout"| node_escrow
node_escrow -->|"updates balances"| node_database
node_escrow -->|"sends notice"| node_email
node_orderapi -->|"uses payment service"| node_sepay
node_sellerops -.->|"accesses"| node_database
node_payapi -.->|"accesses"| node_database

click node_app "https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/App.tsx"
click node_discovery "https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/Products.tsx"
click node_checkout "https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/Checkout.tsx"
click node_ordersui "https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/Orders.tsx"
click node_quotesui "https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/RequestQuotation.tsx"
click node_planner "https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/SpacePlanner.tsx"
click node_social "https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/CompareProducts.tsx"
click node_productapi "https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/ProductsController.cs"
click node_quoteapi "https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/QuotationsController.cs"
click node_orderapi "https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/OrdersController.cs"
click node_authapi "https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/AuthController.cs"
click node_reviewsapi "https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/ReviewsController.cs"
click node_sellerops "https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/SellerRevenueController.cs"
click node_adminops "https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/AdminController.cs"
click node_payapi "https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/PaymentController.cs"
click node_escrow "https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Services/EscrowService.cs"
click node_email "https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Services/EmailService.cs"
click node_database "https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Data/FurniMatchDbContext.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_app,node_discovery,node_checkout,node_ordersui,node_quotesui,node_planner,node_social toneBlue
class node_productapi,node_quoteapi,node_orderapi,node_authapi,node_reviewsapi,node_payapi toneAmber
class node_sellerops,node_adminops toneMint
class node_escrow,node_email,node_database toneRose
class node_customer,node_seller,node_sepay toneIndigo
```

## Components

### Marketplace client

- [Client router](https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/App.tsx): `furnimatch-client/src/App.tsx`
- [Product discovery](https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/Products.tsx): `furnimatch-client/src/pages/Products.tsx`
- [Checkout](https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/Checkout.tsx): `furnimatch-client/src/pages/Checkout.tsx`
- [Order tracking](https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/Orders.tsx): `furnimatch-client/src/pages/Orders.tsx`
- [Quote requests](https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/RequestQuotation.tsx): `furnimatch-client/src/pages/RequestQuotation.tsx`
- [Room planner](https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/SpacePlanner.tsx): `furnimatch-client/src/pages/SpacePlanner.tsx`
- [Shopping tools](https://github.com/hoangviet2805/furnimatch/blob/main/furnimatch-client/src/pages/CompareProducts.tsx): `furnimatch-client/src/pages/CompareProducts.tsx`

### Commerce API

- [Product catalog API](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/ProductsController.cs): `FurniMatch.Api/Controllers/ProductsController.cs`
- [Quotation API](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/QuotationsController.cs): `FurniMatch.Api/Controllers/QuotationsController.cs`
- [Order API](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/OrdersController.cs): `FurniMatch.Api/Controllers/OrdersController.cs`
- [Identity API](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/AuthController.cs): `FurniMatch.Api/Controllers/AuthController.cs`
- [Reviews API](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/ReviewsController.cs): `FurniMatch.Api/Controllers/ReviewsController.cs`
- [Payment endpoints](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/PaymentController.cs): `FurniMatch.Api/Controllers/PaymentController.cs`

### Seller and admin operations

- [Seller operations](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/SellerRevenueController.cs): `FurniMatch.Api/Controllers/SellerRevenueController.cs`
- [Admin operations](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Controllers/AdminController.cs): `FurniMatch.Api/Controllers/AdminController.cs`

### Persistence and services

- [Escrow payouts](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Services/EscrowService.cs): `FurniMatch.Api/Services/EscrowService.cs`
- [Email service](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Services/EmailService.cs): `FurniMatch.Api/Services/EmailService.cs`
- [Marketplace database](https://github.com/hoangviet2805/furnimatch/blob/main/FurniMatch.Api/Data/FurniMatchDbContext.cs): `FurniMatch.Api/Data/FurniMatchDbContext.cs`

### Other components

- **Customer**
- **Seller**
- **SePay gateway**

## Connections

- Customer → Client router: uses (evidence: `furnimatch-client/src/App.tsx`)
- Seller → Client router: uses (evidence: `furnimatch-client/src/App.tsx`)
- Client router → Product discovery: routes to (evidence: `furnimatch-client/src/App.tsx`)
- Client router → Checkout: routes to (evidence: `furnimatch-client/src/App.tsx`)
- Client router → Order tracking: routes to (evidence: `furnimatch-client/src/App.tsx`)
- Client router → Quote requests: routes to (evidence: `furnimatch-client/src/App.tsx`)
- Client router → Room planner: routes to (evidence: `furnimatch-client/src/App.tsx`)
- Client router → Shopping tools: routes to (evidence: `furnimatch-client/src/App.tsx`)
- Product catalog API → Marketplace database: reads and writes (evidence: `FurniMatch.Api/Controllers/ProductsController.cs`)
- Quotation API → Marketplace database: reads and writes (evidence: `FurniMatch.Api/Controllers/QuotationsController.cs`)
- Order API → Marketplace database: reads and writes (evidence: `FurniMatch.Api/Controllers/OrdersController.cs`)
- Identity API → Marketplace database: reads and writes (evidence: `FurniMatch.Api/Controllers/AuthController.cs`)
- Reviews API → Marketplace database: reads and writes (evidence: `FurniMatch.Api/Controllers/ReviewsController.cs`)
- Admin operations → Marketplace database: reads and writes (evidence: `FurniMatch.Api/Controllers/AdminController.cs`)
- Admin operations → Escrow payouts: requests payout (evidence: `FurniMatch.Api/Controllers/AdminController.cs`)
- Escrow payouts → Marketplace database: updates balances (evidence: `FurniMatch.Api/Services/EscrowService.cs`)
- Escrow payouts → Email service: sends notice (evidence: `FurniMatch.Api/Services/EscrowService.cs`)
- Order API → SePay gateway: uses payment service (evidence: `FurniMatch.Api/Controllers/OrdersController.cs`)
- Seller operations → Marketplace database: accesses
- Payment endpoints → Marketplace database: accesses
