# umc-9th-scorpio-project-lived/project-fe architecture

> Architecture diagram of the GitHub repository umc-9th-scorpio-project-lived/project-fe, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/umc-9th-scorpio-project-lived/project-fe
- Repository: https://github.com/umc-9th-scorpio-project-lived/project-fe

## Overview

살아보니는 자취 생활의 루틴 기록과 커뮤니티 공유를 결합한 웹 서비스입니다. 사용자는 소셜 로그인과 온보딩을 거쳐 루틴을 만들고 수행하며, 기록은 나무·통계·아카이브로 돌아보고 친구와 공유할 수 있습니다. 커뮤니티에서는 글·댓글·검색으로 소통하고, 알림과 계정 설정을 관리합니다. 프런트엔드는 React 페이지와 도메인 서비스·상태 저장소로 구성됩니다. 경로 연결은 확인된 라우팅·호출과 README 설명에 한정했으며, 일부 unsampled 기능은 문서 근거만 반영했습니다.

Main entry points: [`src/App.tsx`](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/App.tsx) (App Routes), [`src/pages/trees/TreePage.tsx`](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/trees/TreePage.tsx) (Routine Tree), [`src/pages/homes/CreateRoutinePage.tsx`](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/homes/CreateRoutinePage.tsx) (Routine Authoring), [`src/pages/communities/PostSearchPage.tsx`](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/communities/PostSearchPage.tsx) (Post Search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry &amp; Account"]
  node_router["App Routes<br/>[App.tsx]"]
  node_login["Social Login<br/>[LoginPage.tsx]"]
  node_onboarding["Profile Onboarding<br/>[BasicInfoPage.tsx]"]
  node_api["API Client<br/>[index.ts]"]
end

subgraph group_routines["Routine Practice"]
  node_routinehome["Routine Home<br/>[HomePage.tsx]"]
  node_routineedit["Routine Authoring"]
  node_recommend["Routine Recommendations<br/>[RecommendPage.tsx]"]
  node_routineapi["Routine Services"]
end

subgraph group_trees["Tree &amp; Friends"]
  node_tree["Routine Tree<br/>[TreePage.tsx]"]
  node_tracker["Achievement Tracker"]
  node_statistics["Routine Statistics<br/>[StatisticsPage.tsx]"]
  node_archive["Tree Archive"]
  node_friends["Friend Trees<br/>[FriendTreePage.tsx]"]
end

subgraph group_community["Community"]
  node_community["Community Feed<br/>[CommunityPage.tsx]"]
  node_postdetail["Post &amp; Comments<br/>[PostDetailPage.tsx]"]
  node_postsearch["Post Search<br/>[PostSearchPage.tsx]"]
  node_searchhistory["Search History<br/>[SearchList.tsx]"]
  node_postservice["Post Services"]
end

subgraph group_settings["Alerts &amp; Settings"]
  node_alarm["Notifications<br/>[AlarmPage.tsx]"]
  node_notificationstore["Notification State"]
  node_account["Account &amp; Privacy<br/>[UserPage.tsx]"]
end

node_user(("Member"))
node_backend["Service Backend"]

node_user -->|"opens"| node_router
node_router -->|"routes"| node_login
node_router -->|"routes"| node_onboarding
node_router -->|"routes"| node_routinehome
node_router -->|"routes"| node_routineedit
node_router -->|"routes"| node_recommend
node_router -->|"routes"| node_tree
node_router -->|"routes"| node_tracker
node_router -->|"routes"| node_statistics
node_router -->|"routes"| node_archive
node_router -->|"routes"| node_friends
node_router -->|"routes"| node_community
node_router -->|"routes"| node_postdetail
node_router -->|"routes"| node_postsearch
node_router -->|"routes"| node_alarm
node_router -->|"routes"| node_account
node_user -->|"authenticates"| node_login
node_user -->|"provides profile"| node_onboarding
node_user -->|"creates routines"| node_routineedit
node_user -->|"completes routines"| node_routinehome
node_routineedit -->|"creates routine"| node_routineapi
node_routineedit -.->|"sends requests"| node_api
node_recommend -.->|"adds recommendations"| node_routineapi
node_routinehome -->|"grows records"| node_tree
node_tree -->|"tracks completion"| node_tracker
node_tree -->|"summarizes progress"| node_statistics
node_tree -->|"reviews past trees"| node_archive
node_tree -->|"views friends"| node_friends
node_statistics -.->|"loads statistics"| node_api
node_user -->|"shares stories"| node_community
node_community -->|"opens posts"| node_postdetail
node_user -->|"searches posts"| node_postsearch
node_postsearch -->|"fetches posts"| node_postservice
node_postsearch -->|"shows history"| node_searchhistory
node_searchhistory -->|"manages history"| node_postservice
node_user -->|"reviews alerts"| node_alarm
node_alarm -->|"reads notification state"| node_notificationstore
node_notificationstore -.->|"requests notification data"| node_api
node_user -->|"manages account"| node_account
node_api -->|"calls API"| node_backend

click node_router "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/App.tsx"
click node_login "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/onboardings/LoginPage.tsx"
click node_onboarding "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/onboardings/BasicInfoPage.tsx"
click node_api "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/api/index.ts"
click node_routinehome "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/homes/HomePage.tsx"
click node_routineedit "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/homes/CreateRoutinePage.tsx"
click node_recommend "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/homes/RecommendPage.tsx"
click node_routineapi "https://github.com/umc-9th-scorpio-project-lived/project-fe/tree/develop/src/services/routines"
click node_tree "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/trees/TreePage.tsx"
click node_tracker "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/trees/RoutineTrackerPage.tsx"
click node_statistics "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/trees/StatisticsPage.tsx"
click node_archive "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/trees/TreeArchivePage.tsx"
click node_friends "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/trees/FriendTreePage.tsx"
click node_community "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/communities/CommunityPage.tsx"
click node_postdetail "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/communities/PostDetailPage.tsx"
click node_postsearch "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/communities/PostSearchPage.tsx"
click node_searchhistory "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/components/communities/SearchList.tsx"
click node_postservice "https://github.com/umc-9th-scorpio-project-lived/project-fe/tree/develop/src/services/posts"
click node_alarm "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/alarms/AlarmPage.tsx"
click node_notificationstore "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/stores/notifications/notificationStore.ts"
click node_account "https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/users/UserPage.tsx"

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_router,node_login,node_onboarding,node_api toneBlue
class node_routinehome,node_routineedit,node_recommend,node_routineapi toneAmber
class node_tree,node_tracker,node_statistics,node_archive,node_friends toneMint
class node_community,node_postdetail,node_postsearch,node_searchhistory,node_postservice toneRose
class node_alarm,node_notificationstore,node_account,node_user,node_backend toneIndigo
```

## Components

### Entry & Account

- [App Routes](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/App.tsx): `src/App.tsx`
- [Social Login](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/onboardings/LoginPage.tsx): `src/pages/onboardings/LoginPage.tsx`
- [Profile Onboarding](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/onboardings/BasicInfoPage.tsx): `src/pages/onboardings/BasicInfoPage.tsx`
- [API Client](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/api/index.ts): `src/api/index.ts`

### Routine Practice

- [Routine Home](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/homes/HomePage.tsx): `src/pages/homes/HomePage.tsx`
- [Routine Authoring](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/homes/CreateRoutinePage.tsx): `src/pages/homes/CreateRoutinePage.tsx`
- [Routine Recommendations](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/homes/RecommendPage.tsx): `src/pages/homes/RecommendPage.tsx`
- [Routine Services](https://github.com/umc-9th-scorpio-project-lived/project-fe/tree/develop/src/services/routines): `src/services/routines`

### Tree & Friends

- [Routine Tree](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/trees/TreePage.tsx): `src/pages/trees/TreePage.tsx`
- [Achievement Tracker](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/trees/RoutineTrackerPage.tsx): `src/pages/trees/RoutineTrackerPage.tsx`
- [Routine Statistics](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/trees/StatisticsPage.tsx): `src/pages/trees/StatisticsPage.tsx`
- [Tree Archive](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/trees/TreeArchivePage.tsx): `src/pages/trees/TreeArchivePage.tsx`
- [Friend Trees](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/trees/FriendTreePage.tsx): `src/pages/trees/FriendTreePage.tsx`

### Community

- [Community Feed](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/communities/CommunityPage.tsx): `src/pages/communities/CommunityPage.tsx`
- [Post & Comments](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/communities/PostDetailPage.tsx): `src/pages/communities/PostDetailPage.tsx`
- [Post Search](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/communities/PostSearchPage.tsx): `src/pages/communities/PostSearchPage.tsx`
- [Search History](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/components/communities/SearchList.tsx): `src/components/communities/SearchList.tsx`
- [Post Services](https://github.com/umc-9th-scorpio-project-lived/project-fe/tree/develop/src/services/posts): `src/services/posts`

### Alerts & Settings

- [Notifications](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/alarms/AlarmPage.tsx): `src/pages/alarms/AlarmPage.tsx`
- [Notification State](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/stores/notifications/notificationStore.ts): `src/stores/notifications/notificationStore.ts`
- [Account & Privacy](https://github.com/umc-9th-scorpio-project-lived/project-fe/blob/develop/src/pages/users/UserPage.tsx): `src/pages/users/UserPage.tsx`

### Other components

- **Member**
- **Service Backend**

## Connections

- Member → App Routes: opens
- App Routes → Social Login: routes (evidence: `src/App.tsx`)
- App Routes → Profile Onboarding: routes (evidence: `src/App.tsx`)
- App Routes → Routine Home: routes (evidence: `src/App.tsx`)
- App Routes → Routine Authoring: routes (evidence: `src/App.tsx`)
- App Routes → Routine Recommendations: routes (evidence: `src/App.tsx`)
- App Routes → Routine Tree: routes (evidence: `src/App.tsx`)
- App Routes → Achievement Tracker: routes (evidence: `src/App.tsx`)
- App Routes → Routine Statistics: routes (evidence: `src/App.tsx`)
- App Routes → Tree Archive: routes (evidence: `src/App.tsx`)
- App Routes → Friend Trees: routes (evidence: `src/App.tsx`)
- App Routes → Community Feed: routes (evidence: `src/App.tsx`)
- App Routes → Post & Comments: routes (evidence: `src/App.tsx`)
- App Routes → Post Search: routes (evidence: `src/App.tsx`)
- App Routes → Notifications: routes (evidence: `src/App.tsx`)
- App Routes → Account & Privacy: routes (evidence: `src/App.tsx`)
- Member → Social Login: authenticates
- Member → Profile Onboarding: provides profile
- Member → Routine Authoring: creates routines
- Member → Routine Home: completes routines
- Routine Authoring → Routine Services: creates routine (evidence: `src/pages/homes/CreateRoutinePage.tsx`)
- Routine Authoring → API Client: sends requests
- Routine Recommendations → Routine Services: adds recommendations
- Routine Home → Routine Tree: grows records
- Routine Tree → Achievement Tracker: tracks completion
- Routine Tree → Routine Statistics: summarizes progress
- Routine Tree → Tree Archive: reviews past trees
- Routine Tree → Friend Trees: views friends
- Routine Statistics → API Client: loads statistics
- Member → Community Feed: shares stories
- Community Feed → Post & Comments: opens posts
- Member → Post Search: searches posts
- Post Search → Post Services: fetches posts (evidence: `src/pages/communities/PostSearchPage.tsx`)
- Post Search → Search History: shows history (evidence: `src/pages/communities/PostSearchPage.tsx`)
- Search History → Post Services: manages history (evidence: `src/components/communities/SearchList.tsx`)
- Member → Notifications: reviews alerts
- Notifications → Notification State: reads notification state (evidence: `src/pages/alarms/AlarmPage.tsx`)
- Notification State → API Client: requests notification data
- Member → Account & Privacy: manages account
- API Client → Service Backend: calls API (evidence: `src/api/index.ts`)
