# team4-campick/campick-client architecture

> Architecture diagram of the GitHub repository team4-campick/campick-client, 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/team4-campick/campick-client
- Repository: https://github.com/team4-campick/campick-client

## Overview

CAMPICK is a camping community frontend for campsite discovery and reviews, camping-content sharing, used-gear trading, and member features. The main flow is visitor navigation through the routed app into a feature page, where users browse or submit content; authenticated members also manage account benefits and chat. The graph preserves the README’s major feature areas. Several page implementations are unsampled, so their internal calls are omitted; the edges shown are limited to routes, excerpted calls, and documented capabilities.

Main entry points: [`src/App.js`](https://github.com/team4-campick/campick-client/blob/main/src/App.js) (React app routes), [`src/pages/MyPage/MyPage.jsx`](https://github.com/team4-campick/campick-client/blob/main/src/pages/MyPage/MyPage.jsx) (Member account), [`src/pages/Campsite/SiteDetail.jsx`](https://github.com/team4-campick/campick-client/blob/main/src/pages/Campsite/SiteDetail.jsx) (Campsite detail), [`src/pages/Mainpage.jsx`](https://github.com/team4-campick/campick-client/blob/main/src/pages/Mainpage.jsx) (Home dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["React app routes<br/>[App.js]"]
  node_header["Navigation header<br/>[Header.jsx]"]
  node_footer["Site footer<br/>[Footer.jsx]"]
end

subgraph group_discover["Camping discovery"]
  node_home["Home dashboard<br/>[Mainpage.jsx]"]
  node_campsites["Campsite search<br/>[Campsite.jsx]"]
  node_site_detail["Campsite detail<br/>[SiteDetail.jsx]"]
  node_review_card["Review display<br/>[ReviewCard.jsx]"]
  node_review_create["Review authoring"]
end

subgraph group_content["Community content"]
  node_blog["Blog pages"]
  node_blog_editor["Blog editor<br/>[BlogPostEdit.jsx]"]
  node_videos["Camping videos<br/>[ContentsVideo.jsx]"]
  node_events["Event listings<br/>[Event.jsx]"]
end

subgraph group_market["Gear marketplace"]
  node_market["Sale listings<br/>[Market.jsx]"]
  node_sale_detail["Sale detail<br/>[SaleDetail.jsx]"]
  node_sale_write["Sale authoring<br/>[SalePostWrite.jsx]"]
  node_chat["Buyer-seller chat<br/>[Chat.jsx]"]
  node_socket["Socket connection<br/>[SocketContext.jsx]"]
end

subgraph group_member["Member services"]
  node_auth["Sign-in and registration<br/>[LoginPage.jsx]"]
  node_mypage["Member account<br/>[MyPage.jsx]"]
  node_bingo["Bingo rewards<br/>[Bingo.jsx]"]
  node_member_records["Posts and transactions<br/>[MyPost.jsx]"]
  node_customer_service["Inquiry and withdrawal"]
end

node_visitor(("Visitor"))
node_server["CAMPICK server"]
node_public_api["Public campsite API"]
node_socket_service["Socket.IO service"]

node_visitor -.->|"opens"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_footer
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_campsites
node_app -->|"routes to"| node_site_detail
node_site_detail -->|"renders"| node_review_card
node_site_detail -->|"opens"| node_review_create
node_review_create -->|"submits review"| node_server
node_app -->|"routes to"| node_blog
node_app -->|"routes to"| node_blog_editor
node_home -->|"fetches latest posts"| node_server
node_app -->|"routes to"| node_videos
node_app -->|"routes to"| node_events
node_app -->|"routes to"| node_market
node_app -->|"routes to"| node_sale_detail
node_app -->|"routes to"| node_sale_write
node_sale_write -.->|"submits listing"| node_server
node_app -->|"routes to"| node_chat
node_socket -->|"connects"| node_socket_service
node_app -->|"routes to"| node_auth
node_app -->|"routes to"| node_mypage
node_mypage -->|"offers"| node_bingo
node_mypage -->|"offers"| node_member_records
node_mypage -->|"offers"| node_customer_service
node_customer_service -->|"sends inquiry"| node_server
node_campsites -.->|"searches"| node_public_api

click node_app "https://github.com/team4-campick/campick-client/blob/main/src/App.js"
click node_header "https://github.com/team4-campick/campick-client/blob/main/src/components/HeaderFooter/Header.jsx"
click node_footer "https://github.com/team4-campick/campick-client/blob/main/src/components/HeaderFooter/Footer.jsx"
click node_home "https://github.com/team4-campick/campick-client/blob/main/src/pages/Mainpage.jsx"
click node_campsites "https://github.com/team4-campick/campick-client/blob/main/src/pages/Campsite/Campsite.jsx"
click node_site_detail "https://github.com/team4-campick/campick-client/blob/main/src/pages/Campsite/SiteDetail.jsx"
click node_review_card "https://github.com/team4-campick/campick-client/blob/main/src/components/Campsite/ReviewCard.jsx"
click node_review_create "https://github.com/team4-campick/campick-client/blob/main/src/components/Campsite/ReviewCreateModal.jsx"
click node_blog "https://github.com/team4-campick/campick-client/tree/main/src/pages/Contents"
click node_blog_editor "https://github.com/team4-campick/campick-client/blob/main/src/pages/Contents/BlogPostEdit.jsx"
click node_videos "https://github.com/team4-campick/campick-client/blob/main/src/pages/Contents/ContentsVideo.jsx"
click node_events "https://github.com/team4-campick/campick-client/blob/main/src/pages/Event/Event.jsx"
click node_market "https://github.com/team4-campick/campick-client/blob/main/src/pages/Market/Market.jsx"
click node_sale_detail "https://github.com/team4-campick/campick-client/blob/main/src/pages/Market/SaleDetail.jsx"
click node_sale_write "https://github.com/team4-campick/campick-client/blob/main/src/pages/Market/SalePostWrite.jsx"
click node_chat "https://github.com/team4-campick/campick-client/blob/main/src/pages/Market/Chat.jsx"
click node_socket "https://github.com/team4-campick/campick-client/blob/main/src/context/SocketContext.jsx"
click node_auth "https://github.com/team4-campick/campick-client/blob/main/src/pages/LoginPage.jsx"
click node_mypage "https://github.com/team4-campick/campick-client/blob/main/src/pages/MyPage/MyPage.jsx"
click node_bingo "https://github.com/team4-campick/campick-client/blob/main/src/pages/MyPage/Bingo.jsx"
click node_member_records "https://github.com/team4-campick/campick-client/blob/main/src/pages/MyPage/MyPost.jsx"
click node_customer_service "https://github.com/team4-campick/campick-client/blob/main/src/pages/MyPage/CustomerService.jsx"

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_header,node_footer toneBlue
class node_home,node_campsites,node_site_detail,node_review_card,node_review_create toneAmber
class node_blog,node_blog_editor,node_videos,node_events,node_server,node_public_api toneMint
class node_market,node_sale_detail,node_sale_write,node_chat,node_socket toneRose
class node_auth,node_mypage,node_bingo,node_member_records,node_customer_service,node_visitor,node_socket_service toneIndigo
```

## Components

### Application shell

- [React app routes](https://github.com/team4-campick/campick-client/blob/main/src/App.js): `src/App.js`
- [Navigation header](https://github.com/team4-campick/campick-client/blob/main/src/components/HeaderFooter/Header.jsx): `src/components/HeaderFooter/Header.jsx`
- [Site footer](https://github.com/team4-campick/campick-client/blob/main/src/components/HeaderFooter/Footer.jsx): `src/components/HeaderFooter/Footer.jsx`

### Camping discovery

- [Home dashboard](https://github.com/team4-campick/campick-client/blob/main/src/pages/Mainpage.jsx): `src/pages/Mainpage.jsx`
- [Campsite search](https://github.com/team4-campick/campick-client/blob/main/src/pages/Campsite/Campsite.jsx): `src/pages/Campsite/Campsite.jsx`
- [Campsite detail](https://github.com/team4-campick/campick-client/blob/main/src/pages/Campsite/SiteDetail.jsx): `src/pages/Campsite/SiteDetail.jsx`
- [Review display](https://github.com/team4-campick/campick-client/blob/main/src/components/Campsite/ReviewCard.jsx): `src/components/Campsite/ReviewCard.jsx`
- [Review authoring](https://github.com/team4-campick/campick-client/blob/main/src/components/Campsite/ReviewCreateModal.jsx): `src/components/Campsite/ReviewCreateModal.jsx`

### Community content

- [Blog pages](https://github.com/team4-campick/campick-client/tree/main/src/pages/Contents): `src/pages/Contents`
- [Blog editor](https://github.com/team4-campick/campick-client/blob/main/src/pages/Contents/BlogPostEdit.jsx): `src/pages/Contents/BlogPostEdit.jsx`
- [Camping videos](https://github.com/team4-campick/campick-client/blob/main/src/pages/Contents/ContentsVideo.jsx): `src/pages/Contents/ContentsVideo.jsx`
- [Event listings](https://github.com/team4-campick/campick-client/blob/main/src/pages/Event/Event.jsx): `src/pages/Event/Event.jsx`

### Gear marketplace

- [Sale listings](https://github.com/team4-campick/campick-client/blob/main/src/pages/Market/Market.jsx): `src/pages/Market/Market.jsx`
- [Sale detail](https://github.com/team4-campick/campick-client/blob/main/src/pages/Market/SaleDetail.jsx): `src/pages/Market/SaleDetail.jsx`
- [Sale authoring](https://github.com/team4-campick/campick-client/blob/main/src/pages/Market/SalePostWrite.jsx): `src/pages/Market/SalePostWrite.jsx`
- [Buyer-seller chat](https://github.com/team4-campick/campick-client/blob/main/src/pages/Market/Chat.jsx): `src/pages/Market/Chat.jsx`
- [Socket connection](https://github.com/team4-campick/campick-client/blob/main/src/context/SocketContext.jsx): `src/context/SocketContext.jsx`

### Member services

- [Sign-in and registration](https://github.com/team4-campick/campick-client/blob/main/src/pages/LoginPage.jsx): `src/pages/LoginPage.jsx`
- [Member account](https://github.com/team4-campick/campick-client/blob/main/src/pages/MyPage/MyPage.jsx): `src/pages/MyPage/MyPage.jsx`
- [Bingo rewards](https://github.com/team4-campick/campick-client/blob/main/src/pages/MyPage/Bingo.jsx): `src/pages/MyPage/Bingo.jsx`
- [Posts and transactions](https://github.com/team4-campick/campick-client/blob/main/src/pages/MyPage/MyPost.jsx): `src/pages/MyPage/MyPost.jsx`
- [Inquiry and withdrawal](https://github.com/team4-campick/campick-client/blob/main/src/pages/MyPage/CustomerService.jsx): `src/pages/MyPage/CustomerService.jsx`

### Other components

- **Visitor**
- **CAMPICK server**
- **Public campsite API**
- **Socket.IO service**

## Connections

- Visitor → React app routes: opens (evidence: `README.md`)
- React app routes → Navigation header: renders (evidence: `src/App.js`)
- React app routes → Site footer: renders (evidence: `src/App.js`)
- React app routes → Home dashboard: routes to (evidence: `src/App.js`)
- React app routes → Campsite search: routes to (evidence: `src/App.js`)
- React app routes → Campsite detail: routes to (evidence: `src/App.js`)
- Campsite detail → Review display: renders (evidence: `src/pages/Campsite/SiteDetail.jsx`)
- Campsite detail → Review authoring: opens (evidence: `src/pages/Campsite/SiteDetail.jsx`)
- Review authoring → CAMPICK server: submits review (evidence: `src/components/Campsite/ReviewCreateModal.jsx`)
- React app routes → Blog pages: routes to (evidence: `src/App.js`)
- React app routes → Blog editor: routes to (evidence: `src/App.js`)
- Home dashboard → CAMPICK server: fetches latest posts (evidence: `src/pages/Mainpage.jsx`)
- React app routes → Camping videos: routes to (evidence: `src/App.js`)
- React app routes → Event listings: routes to (evidence: `src/App.js`)
- React app routes → Sale listings: routes to (evidence: `src/App.js`)
- React app routes → Sale detail: routes to (evidence: `src/App.js`)
- React app routes → Sale authoring: routes to (evidence: `src/App.js`)
- Sale authoring → CAMPICK server: submits listing
- React app routes → Buyer-seller chat: routes to (evidence: `src/App.js`)
- Socket connection → Socket.IO service: connects (evidence: `src/context/SocketContext.jsx`)
- React app routes → Sign-in and registration: routes to (evidence: `src/App.js`)
- React app routes → Member account: routes to (evidence: `src/App.js`)
- Member account → Bingo rewards: offers (evidence: `src/App.js`)
- Member account → Posts and transactions: offers (evidence: `src/App.js`)
- Member account → Inquiry and withdrawal: offers (evidence: `src/App.js`)
- Inquiry and withdrawal → CAMPICK server: sends inquiry (evidence: `src/pages/MyPage/CustomerService.jsx`)
- Campsite search → Public campsite API: searches (evidence: `README.md`)
