# 3unbum/13-4-moving_fe architecture

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

- Interactive diagram: https://gitdiagram.com/3unbum/13-4-moving_fe
- Repository: https://github.com/3unbum/13-4-moving_fe

## Overview

MOVING is a bilingual/multilingual moving-services marketplace connecting customers with movers. Its main workflow is customer quote requests, mover responses, customer comparison and selection, then payment and review. The graph includes the documented mover discovery, favorites, authentication and profile branches. Source excerpts show the shared API client and OAuth/auth flows; most feature-level connections rely on README documentation, so unsampled implementation details are not inferred.

Main entry points: [`src/lib/services/auth-service.ts`](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/lib/services/auth-service.ts) (Authentication service), [`src/app/[locale]/(protected)/mover/(with-profile)/requests/_components/MoverRequestsClient.tsx`](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/mover/(with-profile)/requests/_components/MoverRequestsClient.tsx) (Mover requests), [`src/app/[locale]/(auth)/customer/login/page.tsx`](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(auth)/customer/login/page.tsx) (Sign-in and signup), [`src/app/[locale]/(main)/movers/_components/MoversPageClient.tsx`](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(main)/movers/_components/MoversPageClient.tsx) (Mover search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Mover discovery"]
  node_landing["Marketplace landing<br/>[page.tsx]"]
  node_mover_list["Mover search"]
  node_mover_detail["Mover details"]
  node_favorites["Favorites<br/>[page.tsx]"]
  node_reviews["Reviews<br/>[page.tsx]"]
end

subgraph group_matching["Quote matching"]
  node_quote_request["Quote requests<br/>[page.tsx]"]
  node_mover_requests["Mover requests"]
  node_mover_quotes["Mover quote management<br/>[page.tsx]"]
  node_customer_quotes["Customer quotes<br/>[page.tsx]"]
  node_payment["Payment<br/>[PaymentClient.tsx]"]
end

subgraph group_accounts["Accounts and profiles"]
  node_auth_pages["Sign-in and signup<br/>[page.tsx]"]
  node_oauth_callback["OAuth callback"]
  node_auth_state["Session state<br/>[AuthProvider.tsx]"]
  node_auth_service["Authentication service<br/>[auth-service.ts]"]
  node_customer_profile["Customer profile<br/>[page.tsx]"]
  node_mover_profile["Mover profile<br/>[page.tsx]"]
end

subgraph group_platform["Application platform"]
  node_api_client["API client<br/>[api-client.ts]"]
end

node_customer(("Customer"))
node_mover(("Mover"))
node_backend[("MOVING backend")]

node_customer -->|"browses"| node_landing
node_customer -->|"searches movers"| node_mover_list
node_mover_list -->|"opens profile"| node_mover_detail
node_customer -->|"requests quotes"| node_quote_request
node_quote_request -->|"sends requests"| node_mover_requests
node_mover -->|"reviews requests"| node_mover_requests
node_mover_requests -->|"submits quotes"| node_mover_quotes
node_customer -->|"compares quotes"| node_customer_quotes
node_customer_quotes -->|"pays deposit"| node_payment
node_customer -->|"saves movers"| node_favorites
node_customer -->|"writes reviews"| node_reviews
node_mover -->|"manages profile"| node_mover_profile
node_customer -->|"manages profile"| node_customer_profile
node_customer -->|"signs up"| node_auth_pages
node_mover -->|"signs up"| node_auth_pages
node_auth_pages -.->|"authenticates"| node_auth_service
node_oauth_callback -->|"exchanges code"| node_auth_service
node_auth_state -->|"loads account"| node_auth_service
node_auth_service -->|"sends requests"| node_api_client
node_api_client -->|"proxies API"| node_backend

click node_landing "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(main)/page.tsx"
click node_mover_list "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(main)/movers/_components/MoversPageClient.tsx"
click node_mover_detail "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(main)/movers/%5BmoverId%5D/_components/MoverDetailClient.tsx"
click node_favorites "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/customer/favorites/page.tsx"
click node_reviews "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/customer/reviews/page.tsx"
click node_quote_request "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/customer/quotation-requests/page.tsx"
click node_mover_requests "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/mover/(with-profile)/requests/_components/MoverRequestsClient.tsx"
click node_mover_quotes "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/mover/(with-profile)/my-quotes/page.tsx"
click node_customer_quotes "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/customer/my-quotes/page.tsx"
click node_payment "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/components/payment/PaymentClient.tsx"
click node_auth_pages "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(auth)/customer/login/page.tsx"
click node_oauth_callback "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(auth)/oauth/%5Bprovider%5D/callback/_components/OAuthCallbackClient.tsx"
click node_auth_state "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/providers/AuthProvider.tsx"
click node_auth_service "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/lib/services/auth-service.ts"
click node_customer_profile "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/customer/profile-edit/page.tsx"
click node_mover_profile "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/mover/(with-profile)/mypage/page.tsx"
click node_api_client "https://github.com/3unbum/13-4-moving_fe/blob/dev/src/lib/utils/api-client.ts"

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_landing,node_mover_list,node_mover_detail,node_favorites,node_reviews toneBlue
class node_quote_request,node_mover_requests,node_mover_quotes,node_customer_quotes,node_payment,node_backend toneAmber
class node_auth_pages,node_oauth_callback,node_auth_state,node_auth_service,node_customer_profile,node_mover_profile toneMint
class node_api_client toneRose
class node_customer,node_mover toneIndigo
```

## Components

### Mover discovery

- [Marketplace landing](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(main)/page.tsx): `src/app/[locale]/(main)/page.tsx`
- [Mover search](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(main)/movers/_components/MoversPageClient.tsx): `src/app/[locale]/(main)/movers/_components/MoversPageClient.tsx`
- [Mover details](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(main)/movers/%5BmoverId%5D/_components/MoverDetailClient.tsx): `src/app/[locale]/(main)/movers/[moverId]/_components/MoverDetailClient.tsx`
- [Favorites](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/customer/favorites/page.tsx): `src/app/[locale]/(protected)/customer/favorites/page.tsx`
- [Reviews](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/customer/reviews/page.tsx): `src/app/[locale]/(protected)/customer/reviews/page.tsx`

### Quote matching

- [Quote requests](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/customer/quotation-requests/page.tsx): `src/app/[locale]/(protected)/customer/quotation-requests/page.tsx`
- [Mover requests](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/mover/(with-profile)/requests/_components/MoverRequestsClient.tsx): `src/app/[locale]/(protected)/mover/(with-profile)/requests/_components/MoverRequestsClient.tsx`
- [Mover quote management](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/mover/(with-profile)/my-quotes/page.tsx): `src/app/[locale]/(protected)/mover/(with-profile)/my-quotes/page.tsx`
- [Customer quotes](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/customer/my-quotes/page.tsx): `src/app/[locale]/(protected)/customer/my-quotes/page.tsx`
- [Payment](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/components/payment/PaymentClient.tsx): `src/components/payment/PaymentClient.tsx`

### Accounts and profiles

- [Sign-in and signup](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(auth)/customer/login/page.tsx): `src/app/[locale]/(auth)/customer/login/page.tsx`
- [OAuth callback](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(auth)/oauth/%5Bprovider%5D/callback/_components/OAuthCallbackClient.tsx): `src/app/[locale]/(auth)/oauth/[provider]/callback/_components/OAuthCallbackClient.tsx`
- [Session state](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/providers/AuthProvider.tsx): `src/providers/AuthProvider.tsx`
- [Authentication service](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/lib/services/auth-service.ts): `src/lib/services/auth-service.ts`
- [Customer profile](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/customer/profile-edit/page.tsx): `src/app/[locale]/(protected)/customer/profile-edit/page.tsx`
- [Mover profile](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/app/%5Blocale%5D/(protected)/mover/(with-profile)/mypage/page.tsx): `src/app/[locale]/(protected)/mover/(with-profile)/mypage/page.tsx`

### Application platform

- [API client](https://github.com/3unbum/13-4-moving_fe/blob/dev/src/lib/utils/api-client.ts): `src/lib/utils/api-client.ts`

### Other components

- **Customer**
- **Mover**
- **MOVING backend**

## Connections

- Customer → Marketplace landing: browses
- Customer → Mover search: searches movers
- Mover search → Mover details: opens profile
- Customer → Quote requests: requests quotes
- Quote requests → Mover requests: sends requests
- Mover → Mover requests: reviews requests
- Mover requests → Mover quote management: submits quotes
- Customer → Customer quotes: compares quotes
- Customer quotes → Payment: pays deposit
- Customer → Favorites: saves movers
- Customer → Reviews: writes reviews
- Mover → Mover profile: manages profile
- Customer → Customer profile: manages profile
- Customer → Sign-in and signup: signs up
- Mover → Sign-in and signup: signs up
- Sign-in and signup → Authentication service: authenticates
- OAuth callback → Authentication service: exchanges code (evidence: `src/app/[locale]/(auth)/oauth/[provider]/callback/_components/OAuthCallbackClient.tsx`)
- Session state → Authentication service: loads account (evidence: `src/providers/AuthProvider.tsx`)
- Authentication service → API client: sends requests (evidence: `src/lib/services/auth-service.ts`)
- API client → MOVING backend: proxies API (evidence: `src/lib/utils/api-client.ts`)
