# dkuaegis/aegis-web architecture

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

- Interactive diagram: https://gitdiagram.com/dkuaegis/aegis-web
- Repository: https://github.com/dkuaegis/aegis-web

## Overview

AEGIS Web is a client-rendered club portal spanning public information, study management, membership onboarding, and member services. Users enter through top-level routes; authentication-aware navigation leads members into study or account tools, while prospective members follow a multi-step join funnel through consent, personal details, surveys, coupons/payment guidance, and completion. The graph preserves the documented Korean/English interface and backend API dependency. Some feature internals were not sampled, so their links are limited to route and README evidence.

Main entry points: [`app/routes.ts`](https://github.com/dkuaegis/aegis-web/blob/dev/app/routes.ts) (Route map), [`app/lib/api.ts`](https://github.com/dkuaegis/aegis-web/blob/dev/app/lib/api.ts) (Backend API client), [`app/features/join/App.tsx`](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/App.tsx) (Join funnel), [`app/features/study/App.tsx`](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/study/App.tsx) (Study experience)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public site"]
  node_home["Home<br/>[_index.tsx]"]
  node_faq["FAQ<br/>[route.tsx]"]
  node_recruit["Recruitment<br/>[route.tsx]"]
  node_contact["Contact<br/>[route.tsx]"]
  node_navigation["Site navigation<br/>[Navigation.tsx]"]
  node_footer["Site footer<br/>[Footer.tsx]"]
end

subgraph group_onboarding["Membership onboarding"]
  node_join_app["Join funnel<br/>[App.tsx]"]
  node_agreement["Consent<br/>[Agreement.tsx]"]
  node_personal["Personal details<br/>[PersonalInfo.tsx]"]
  node_survey["Member survey<br/>[Survey.tsx]"]
  node_coupon["Coupon selection<br/>[Coupon.tsx]"]
  node_payment["Payment guidance<br/>[Payment.tsx]"]
  node_join_complete["Join completion<br/>[JoinComplete.tsx]"]
end

subgraph group_study["Study experience"]
  node_study_app["Study experience<br/>[App.tsx]"]
  node_study_list["Study directory<br/>[StudyListPage.tsx]"]
  node_study_create["Create study"]
  node_study_detail["Study detail"]
  node_study_members["Study members"]
end

subgraph group_members["Member services"]
  node_mypage_app["Member portal<br/>[App.tsx]"]
  node_mypage_home["Member home<br/>[Home.tsx]"]
  node_coupons_page["Member coupons<br/>[Coupons.tsx]"]
  node_member_points["Points and shop<br/>[Points.tsx]"]
  node_ranking["Member ranking<br/>[Ranking.tsx]"]
end

subgraph group_shared["Shared platform"]
  node_routes["Route map<br/>[routes.ts]"]
  node_auth["Authentication check<br/>[auth.ts]"]
  node_auth_continue["Auth continuation<br/>[auth.continue.tsx]"]
  node_auth_intent["Login intent routing<br/>[authIntent.ts]"]
  node_i18n["Korean and English<br/>[store.ts]"]
  node_api["Backend API client<br/>[api.ts]"]
end

node_visitor(("Visitor or member"))
node_backend[("AEGIS backend")]

node_visitor -->|"opens pages"| node_routes
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_faq
node_routes -->|"routes to"| node_recruit
node_routes -->|"routes to"| node_contact
node_routes -->|"routes to"| node_join_app
node_routes -->|"routes to"| node_study_app
node_routes -->|"routes to"| node_mypage_app
node_routes -->|"routes to"| node_auth_continue
node_visitor -->|"uses navigation"| node_navigation
node_faq -->|"renders"| node_footer
node_recruit -->|"renders"| node_footer
node_contact -->|"renders"| node_footer
node_navigation -->|"checks status"| node_auth
node_auth -->|"requests auth"| node_api
node_auth_continue -->|"resolves intent"| node_auth_intent
node_recruit -->|"links join"| node_auth_continue
node_auth_continue -->|"continues to join"| node_join_app
node_join_app -->|"routes consent"| node_agreement
node_join_app -->|"routes details"| node_personal
node_join_app -->|"routes survey"| node_survey
node_join_app -->|"routes payment"| node_payment
node_join_app -->|"routes completion"| node_join_complete
node_join_app -->|"translates interface"| node_i18n
node_agreement -.->|"progresses through funnel"| node_coupon
node_personal -.->|"submits member data"| node_api
node_survey -.->|"submits survey"| node_api
node_coupon -.->|"loads coupons"| node_api
node_payment -.->|"checks payment"| node_api
node_study_app -->|"routes studies"| node_study_list
node_study_app -->|"routes creation"| node_study_create
node_study_app -->|"routes detail"| node_study_detail
node_study_app -->|"routes members"| node_study_members
node_study_app -->|"checks access"| node_auth
node_study_app -->|"redirects sign-in"| node_auth_continue
node_study_list -.->|"uses backend data"| node_api
node_study_create -.->|"creates study"| node_api
node_mypage_app -->|"routes home"| node_mypage_home
node_mypage_app -->|"routes coupons"| node_coupons_page
node_mypage_app -->|"routes points"| node_member_points
node_mypage_app -->|"routes ranking"| node_ranking
node_mypage_home -.->|"loads account data"| node_api
node_coupons_page -.->|"loads coupons"| node_api
node_api -.->|"sends requests"| node_backend
node_visitor -->|"selects language"| node_i18n

click node_routes "https://github.com/dkuaegis/aegis-web/blob/dev/app/routes.ts"
click node_home "https://github.com/dkuaegis/aegis-web/blob/dev/app/routes/_index.tsx"
click node_faq "https://github.com/dkuaegis/aegis-web/blob/dev/app/routes/faq/route.tsx"
click node_recruit "https://github.com/dkuaegis/aegis-web/blob/dev/app/routes/recruit/route.tsx"
click node_contact "https://github.com/dkuaegis/aegis-web/blob/dev/app/routes/contact/route.tsx"
click node_navigation "https://github.com/dkuaegis/aegis-web/blob/dev/app/components/Navigation.tsx"
click node_footer "https://github.com/dkuaegis/aegis-web/blob/dev/app/components/Footer.tsx"
click node_auth "https://github.com/dkuaegis/aegis-web/blob/dev/app/api/auth.ts"
click node_auth_continue "https://github.com/dkuaegis/aegis-web/blob/dev/app/routes/auth.continue.tsx"
click node_auth_intent "https://github.com/dkuaegis/aegis-web/blob/dev/app/lib/authIntent.ts"
click node_join_app "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/App.tsx"
click node_agreement "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/Agreement/Agreement.tsx"
click node_personal "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/PersonalInfo/PersonalInfo.tsx"
click node_survey "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/Survey/Survey.tsx"
click node_coupon "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/Coupon/Coupon.tsx"
click node_payment "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/Payment/Payment.tsx"
click node_join_complete "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/JoinComplete/JoinComplete.tsx"
click node_study_app "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/study/App.tsx"
click node_study_list "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/study/pages/StudyListPage.tsx"
click node_study_create "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/study/pages/CreateStudyPage.tsx"
click node_study_detail "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/study/pages/wrappers/StudyDetailWrapper.tsx"
click node_study_members "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/study/pages/wrappers/StudyMemberWrapper.tsx"
click node_mypage_app "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/mypage/App.tsx"
click node_mypage_home "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/mypage/pages/Home.tsx"
click node_coupons_page "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/mypage/pages/Coupons.tsx"
click node_member_points "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/mypage/pages/Points.tsx"
click node_ranking "https://github.com/dkuaegis/aegis-web/blob/dev/app/features/mypage/pages/Ranking.tsx"
click node_i18n "https://github.com/dkuaegis/aegis-web/blob/dev/app/i18n/store.ts"
click node_api "https://github.com/dkuaegis/aegis-web/blob/dev/app/lib/api.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_home,node_faq,node_recruit,node_contact,node_navigation,node_footer toneBlue
class node_join_app,node_agreement,node_personal,node_survey,node_coupon,node_payment,node_join_complete,node_backend toneAmber
class node_study_app,node_study_list,node_study_create,node_study_detail,node_study_members toneMint
class node_mypage_app,node_mypage_home,node_coupons_page,node_member_points,node_ranking toneRose
class node_routes,node_auth,node_auth_continue,node_auth_intent,node_i18n,node_api,node_visitor toneIndigo
```

## Components

### Public site

- [Home](https://github.com/dkuaegis/aegis-web/blob/dev/app/routes/_index.tsx): `app/routes/_index.tsx`
- [FAQ](https://github.com/dkuaegis/aegis-web/blob/dev/app/routes/faq/route.tsx): `app/routes/faq/route.tsx`
- [Recruitment](https://github.com/dkuaegis/aegis-web/blob/dev/app/routes/recruit/route.tsx): `app/routes/recruit/route.tsx`
- [Contact](https://github.com/dkuaegis/aegis-web/blob/dev/app/routes/contact/route.tsx): `app/routes/contact/route.tsx`
- [Site navigation](https://github.com/dkuaegis/aegis-web/blob/dev/app/components/Navigation.tsx): `app/components/Navigation.tsx`
- [Site footer](https://github.com/dkuaegis/aegis-web/blob/dev/app/components/Footer.tsx): `app/components/Footer.tsx`

### Membership onboarding

- [Join funnel](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/App.tsx): `app/features/join/App.tsx`
- [Consent](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/Agreement/Agreement.tsx): `app/features/join/pages/Agreement/Agreement.tsx`
- [Personal details](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/PersonalInfo/PersonalInfo.tsx): `app/features/join/pages/PersonalInfo/PersonalInfo.tsx`
- [Member survey](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/Survey/Survey.tsx): `app/features/join/pages/Survey/Survey.tsx`
- [Coupon selection](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/Coupon/Coupon.tsx): `app/features/join/pages/Coupon/Coupon.tsx`
- [Payment guidance](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/Payment/Payment.tsx): `app/features/join/pages/Payment/Payment.tsx`
- [Join completion](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/join/pages/JoinComplete/JoinComplete.tsx): `app/features/join/pages/JoinComplete/JoinComplete.tsx`

### Study experience

- [Study experience](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/study/App.tsx): `app/features/study/App.tsx`
- [Study directory](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/study/pages/StudyListPage.tsx): `app/features/study/pages/StudyListPage.tsx`
- [Create study](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/study/pages/CreateStudyPage.tsx): `app/features/study/pages/CreateStudyPage.tsx`
- [Study detail](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/study/pages/wrappers/StudyDetailWrapper.tsx): `app/features/study/pages/wrappers/StudyDetailWrapper.tsx`
- [Study members](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/study/pages/wrappers/StudyMemberWrapper.tsx): `app/features/study/pages/wrappers/StudyMemberWrapper.tsx`

### Member services

- [Member portal](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/mypage/App.tsx): `app/features/mypage/App.tsx`
- [Member home](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/mypage/pages/Home.tsx): `app/features/mypage/pages/Home.tsx`
- [Member coupons](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/mypage/pages/Coupons.tsx): `app/features/mypage/pages/Coupons.tsx`
- [Points and shop](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/mypage/pages/Points.tsx): `app/features/mypage/pages/Points.tsx`
- [Member ranking](https://github.com/dkuaegis/aegis-web/blob/dev/app/features/mypage/pages/Ranking.tsx): `app/features/mypage/pages/Ranking.tsx`

### Shared platform

- [Route map](https://github.com/dkuaegis/aegis-web/blob/dev/app/routes.ts): `app/routes.ts`
- [Authentication check](https://github.com/dkuaegis/aegis-web/blob/dev/app/api/auth.ts): `app/api/auth.ts`
- [Auth continuation](https://github.com/dkuaegis/aegis-web/blob/dev/app/routes/auth.continue.tsx): `app/routes/auth.continue.tsx`
- [Login intent routing](https://github.com/dkuaegis/aegis-web/blob/dev/app/lib/authIntent.ts): `app/lib/authIntent.ts`
- [Korean and English](https://github.com/dkuaegis/aegis-web/blob/dev/app/i18n/store.ts): `app/i18n/store.ts`
- [Backend API client](https://github.com/dkuaegis/aegis-web/blob/dev/app/lib/api.ts): `app/lib/api.ts`

### Other components

- **Visitor or member**
- **AEGIS backend**

## Connections

- Visitor or member → Route map: opens pages (evidence: `README.md`)
- Route map → Home: routes to (evidence: `README.md`)
- Route map → FAQ: routes to (evidence: `README.md`)
- Route map → Recruitment: routes to (evidence: `README.md`)
- Route map → Contact: routes to (evidence: `README.md`)
- Route map → Join funnel: routes to
- Route map → Study experience: routes to
- Route map → Member portal: routes to
- Route map → Auth continuation: routes to (evidence: `README.md`)
- Visitor or member → Site navigation: uses navigation
- FAQ → Site footer: renders (evidence: `app/routes/faq/route.tsx`)
- Recruitment → Site footer: renders (evidence: `app/routes/recruit/route.tsx`)
- Contact → Site footer: renders (evidence: `app/routes/contact/route.tsx`)
- Site navigation → Authentication check: checks status (evidence: `app/components/Navigation.tsx`)
- Authentication check → Backend API client: requests auth (evidence: `app/api/auth.ts`)
- Auth continuation → Login intent routing: resolves intent
- Recruitment → Auth continuation: links join (evidence: `app/routes/recruit/route.tsx`)
- Auth continuation → Join funnel: continues to join
- Join funnel → Consent: routes consent (evidence: `app/features/join/App.tsx`)
- Join funnel → Personal details: routes details (evidence: `app/features/join/App.tsx`)
- Join funnel → Member survey: routes survey (evidence: `app/features/join/App.tsx`)
- Join funnel → Payment guidance: routes payment (evidence: `app/features/join/App.tsx`)
- Join funnel → Join completion: routes completion (evidence: `app/features/join/App.tsx`)
- Join funnel → Korean and English: translates interface (evidence: `app/features/join/App.tsx`)
- Consent → Coupon selection: progresses through funnel
- Personal details → Backend API client: submits member data
- Member survey → Backend API client: submits survey
- Coupon selection → Backend API client: loads coupons
- Payment guidance → Backend API client: checks payment
- Study experience → Study directory: routes studies (evidence: `app/features/study/App.tsx`)
- Study experience → Create study: routes creation (evidence: `app/features/study/App.tsx`)
- Study experience → Study detail: routes detail (evidence: `app/features/study/App.tsx`)
- Study experience → Study members: routes members (evidence: `app/features/study/App.tsx`)
- Study experience → Authentication check: checks access
- Study experience → Auth continuation: redirects sign-in (evidence: `app/features/study/App.tsx`)
- Study directory → Backend API client: uses backend data
- Create study → Backend API client: creates study
- Member portal → Member home: routes home (evidence: `app/features/mypage/App.tsx`)
- Member portal → Member coupons: routes coupons (evidence: `app/features/mypage/App.tsx`)
- Member portal → Points and shop: routes points (evidence: `app/features/mypage/App.tsx`)
- Member portal → Member ranking: routes ranking (evidence: `app/features/mypage/App.tsx`)
- Member home → Backend API client: loads account data
- Member coupons → Backend API client: loads coupons
- Backend API client → AEGIS backend: sends requests (evidence: `README.md`)
- Visitor or member → Korean and English: selects language (evidence: `README.md`)
