# pdar124/tripcast_web architecture

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

## Overview

TripCast is a tourism discovery frontend for searching attractions and courses, viewing weather and tourism climate indices, and exploring map-based routes; it also provides an admin login and climate-index sync workflow. Users enter through the routed app, select a discovery or climate feature, and receive backend data in its page. The graph preserves the documented home 3D experience, recommendations, maps, and admin capabilities. Evidence is limited to the README and indexed or excerpted files; unsampled implementation links are omitted where not established.

Main entry points: [`src/app/router.tsx`](https://github.com/pdar124/tripcast_web/blob/main/src/app/router.tsx) (Route table), [`src/features/spots/pages/spot-list-page.tsx`](https://github.com/pdar124/tripcast_web/blob/main/src/features/spots/pages/spot-list-page.tsx) (Spot search), [`src/features/home/home-page.tsx`](https://github.com/pdar124/tripcast_web/blob/main/src/features/home/home-page.tsx) (Home experience), [`src/shared/api/http.ts`](https://github.com/pdar124/tripcast_web/blob/main/src/shared/api/http.ts) (HTTP client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["App entry<br/>[app.tsx]"]
  node_router["Route table<br/>[router.tsx]"]
  node_layout["App layout<br/>[app-layout.tsx]"]
end

subgraph group_discovery["Tourism discovery"]
  node_home["Home experience<br/>[home-page.tsx]"]
  node_hero["3D hero<br/>[hero-section.tsx]"]
  node_recommendations["Live recommendations"]
  node_spotsearch["Spot search<br/>[spot-list-page.tsx]"]
  node_spotdetail["Spot detail"]
  node_spotapi["Spot API<br/>[spot-api.ts]"]
  node_spotmap["Spot map<br/>[spot-map.tsx]"]
  node_courselist["Course list"]
  node_coursedetail["Course detail"]
  node_recommendationpage["Course recommendations"]
  node_routepreview["Course route preview"]
end

subgraph group_climate["Climate insights"]
  node_climatepage["Climate index<br/>[climate-page.tsx]"]
  node_climatehooks["Climate queries"]
  node_climateapi["Climate API<br/>[climate-api.ts]"]
end

subgraph group_admin["Administration"]
  node_adminlogin["Admin login"]
  node_protected["Route guard"]
  node_dashboard["Sync dashboard"]
  node_synchook["Climate sync"]
  node_auth[("Auth session<br/>[auth-store.ts]")]
end

subgraph group_shared["Shared services"]
  node_http["HTTP client<br/>[http.ts]"]
  node_scroll["Scroll manager<br/>[scroll-manager.tsx]"]
  node_kakao["Kakao Maps SDK<br/>[kakao-maps.ts]"]
end

node_visitor(("Visitor"))
node_backend[("TripCast backend")]

node_visitor -->|"opens routes"| node_router
node_app -->|"provides routes"| node_router
node_router -->|"wraps pages"| node_layout
node_router -->|"routes home"| node_home
node_router -->|"routes search"| node_spotsearch
node_router -->|"routes details"| node_spotdetail
node_router -->|"routes courses"| node_courselist
node_router -->|"routes details"| node_coursedetail
node_router -->|"routes recommendations"| node_recommendationpage
node_router -->|"routes climate"| node_climatepage
node_router -->|"routes login"| node_adminlogin
node_router -->|"guards admin"| node_protected
node_protected -->|"allows access"| node_dashboard
node_home -->|"renders hero"| node_hero
node_home -->|"renders recommendations"| node_recommendations
node_spotsearch -->|"loads attractions"| node_spotapi
node_spotsearch -->|"renders locations"| node_spotmap
node_spotsearch -->|"opens selected spot"| node_spotdetail
node_climatepage -->|"queries indices"| node_climatehooks
node_climatehooks -->|"fetches data"| node_climateapi
node_dashboard -->|"starts sync"| node_synchook
node_http -->|"reads session"| node_auth
node_layout -->|"renders manager"| node_scroll
node_routepreview -->|"uses map SDK"| node_kakao
node_http -.->|"requests API"| node_backend
node_spotapi -.->|"fetches spot data"| node_backend
node_climateapi -.->|"fetches climate data"| node_backend
node_synchook -.->|"requests sync"| node_backend
node_spotmap -.->|"displays map"| node_kakao

click node_app "https://github.com/pdar124/tripcast_web/blob/main/src/app/app.tsx"
click node_router "https://github.com/pdar124/tripcast_web/blob/main/src/app/router.tsx"
click node_layout "https://github.com/pdar124/tripcast_web/blob/main/src/shared/components/app-layout.tsx"
click node_home "https://github.com/pdar124/tripcast_web/blob/main/src/features/home/home-page.tsx"
click node_hero "https://github.com/pdar124/tripcast_web/blob/main/src/features/home/components/hero-section.tsx"
click node_recommendations "https://github.com/pdar124/tripcast_web/blob/main/src/features/home/components/live-recommendations-section.tsx"
click node_spotsearch "https://github.com/pdar124/tripcast_web/blob/main/src/features/spots/pages/spot-list-page.tsx"
click node_spotdetail "https://github.com/pdar124/tripcast_web/blob/main/src/features/spots/pages/spot-detail-page.tsx"
click node_spotapi "https://github.com/pdar124/tripcast_web/blob/main/src/features/spots/api/spot-api.ts"
click node_spotmap "https://github.com/pdar124/tripcast_web/blob/main/src/features/spots/components/spot-map.tsx"
click node_courselist "https://github.com/pdar124/tripcast_web/blob/main/src/features/courses/pages/course-list-page.tsx"
click node_coursedetail "https://github.com/pdar124/tripcast_web/blob/main/src/features/courses/pages/course-detail-page.tsx"
click node_recommendationpage "https://github.com/pdar124/tripcast_web/blob/main/src/features/courses/pages/recommendation-page.tsx"
click node_climatepage "https://github.com/pdar124/tripcast_web/blob/main/src/features/climate/pages/climate-page.tsx"
click node_climatehooks "https://github.com/pdar124/tripcast_web/blob/main/src/features/climate/hooks/use-climate-index.ts"
click node_climateapi "https://github.com/pdar124/tripcast_web/blob/main/src/features/climate/api/climate-api.ts"
click node_adminlogin "https://github.com/pdar124/tripcast_web/blob/main/src/features/admin/pages/admin-login-page.tsx"
click node_protected "https://github.com/pdar124/tripcast_web/blob/main/src/features/admin/components/protected-admin-route.tsx"
click node_dashboard "https://github.com/pdar124/tripcast_web/blob/main/src/features/admin/pages/admin-dashboard-page.tsx"
click node_synchook "https://github.com/pdar124/tripcast_web/blob/main/src/features/admin/hooks/use-climate-index-sync.ts"
click node_auth "https://github.com/pdar124/tripcast_web/blob/main/src/features/admin/store/auth-store.ts"
click node_http "https://github.com/pdar124/tripcast_web/blob/main/src/shared/api/http.ts"
click node_scroll "https://github.com/pdar124/tripcast_web/blob/main/src/shared/components/scroll-manager.tsx"
click node_kakao "https://github.com/pdar124/tripcast_web/blob/main/src/shared/lib/kakao-maps.ts"
click node_routepreview "https://github.com/pdar124/tripcast_web/blob/main/src/features/courses/components/course-route-thumbnail.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_app,node_router,node_layout toneBlue
class node_home,node_hero,node_recommendations,node_spotsearch,node_spotdetail,node_spotapi,node_spotmap,node_courselist,node_coursedetail,node_recommendationpage,node_routepreview,node_backend toneAmber
class node_climatepage,node_climatehooks,node_climateapi toneMint
class node_adminlogin,node_protected,node_dashboard,node_synchook,node_auth toneRose
class node_http,node_scroll,node_kakao,node_visitor toneIndigo
```

## Components

### Application shell

- [App entry](https://github.com/pdar124/tripcast_web/blob/main/src/app/app.tsx): `src/app/app.tsx`
- [Route table](https://github.com/pdar124/tripcast_web/blob/main/src/app/router.tsx): `src/app/router.tsx`
- [App layout](https://github.com/pdar124/tripcast_web/blob/main/src/shared/components/app-layout.tsx): `src/shared/components/app-layout.tsx`

### Tourism discovery

- [Home experience](https://github.com/pdar124/tripcast_web/blob/main/src/features/home/home-page.tsx): `src/features/home/home-page.tsx`
- [3D hero](https://github.com/pdar124/tripcast_web/blob/main/src/features/home/components/hero-section.tsx): `src/features/home/components/hero-section.tsx`
- [Live recommendations](https://github.com/pdar124/tripcast_web/blob/main/src/features/home/components/live-recommendations-section.tsx): `src/features/home/components/live-recommendations-section.tsx`
- [Spot search](https://github.com/pdar124/tripcast_web/blob/main/src/features/spots/pages/spot-list-page.tsx): `src/features/spots/pages/spot-list-page.tsx`
- [Spot detail](https://github.com/pdar124/tripcast_web/blob/main/src/features/spots/pages/spot-detail-page.tsx): `src/features/spots/pages/spot-detail-page.tsx`
- [Spot API](https://github.com/pdar124/tripcast_web/blob/main/src/features/spots/api/spot-api.ts): `src/features/spots/api/spot-api.ts`
- [Spot map](https://github.com/pdar124/tripcast_web/blob/main/src/features/spots/components/spot-map.tsx): `src/features/spots/components/spot-map.tsx`
- [Course list](https://github.com/pdar124/tripcast_web/blob/main/src/features/courses/pages/course-list-page.tsx): `src/features/courses/pages/course-list-page.tsx`
- [Course detail](https://github.com/pdar124/tripcast_web/blob/main/src/features/courses/pages/course-detail-page.tsx): `src/features/courses/pages/course-detail-page.tsx`
- [Course recommendations](https://github.com/pdar124/tripcast_web/blob/main/src/features/courses/pages/recommendation-page.tsx): `src/features/courses/pages/recommendation-page.tsx`
- [Course route preview](https://github.com/pdar124/tripcast_web/blob/main/src/features/courses/components/course-route-thumbnail.tsx): `src/features/courses/components/course-route-thumbnail.tsx`

### Climate insights

- [Climate index](https://github.com/pdar124/tripcast_web/blob/main/src/features/climate/pages/climate-page.tsx): `src/features/climate/pages/climate-page.tsx`
- [Climate queries](https://github.com/pdar124/tripcast_web/blob/main/src/features/climate/hooks/use-climate-index.ts): `src/features/climate/hooks/use-climate-index.ts`
- [Climate API](https://github.com/pdar124/tripcast_web/blob/main/src/features/climate/api/climate-api.ts): `src/features/climate/api/climate-api.ts`

### Administration

- [Admin login](https://github.com/pdar124/tripcast_web/blob/main/src/features/admin/pages/admin-login-page.tsx): `src/features/admin/pages/admin-login-page.tsx`
- [Route guard](https://github.com/pdar124/tripcast_web/blob/main/src/features/admin/components/protected-admin-route.tsx): `src/features/admin/components/protected-admin-route.tsx`
- [Sync dashboard](https://github.com/pdar124/tripcast_web/blob/main/src/features/admin/pages/admin-dashboard-page.tsx): `src/features/admin/pages/admin-dashboard-page.tsx`
- [Climate sync](https://github.com/pdar124/tripcast_web/blob/main/src/features/admin/hooks/use-climate-index-sync.ts): `src/features/admin/hooks/use-climate-index-sync.ts`
- [Auth session](https://github.com/pdar124/tripcast_web/blob/main/src/features/admin/store/auth-store.ts): `src/features/admin/store/auth-store.ts`

### Shared services

- [HTTP client](https://github.com/pdar124/tripcast_web/blob/main/src/shared/api/http.ts): `src/shared/api/http.ts`
- [Scroll manager](https://github.com/pdar124/tripcast_web/blob/main/src/shared/components/scroll-manager.tsx): `src/shared/components/scroll-manager.tsx`
- [Kakao Maps SDK](https://github.com/pdar124/tripcast_web/blob/main/src/shared/lib/kakao-maps.ts): `src/shared/lib/kakao-maps.ts`

### Other components

- **Visitor**
- **TripCast backend**

## Connections

- Visitor → Route table: opens routes (evidence: `src/app/router.tsx`)
- App entry → Route table: provides routes (evidence: `src/app/app.tsx`)
- Route table → App layout: wraps pages (evidence: `src/app/router.tsx`)
- Route table → Home experience: routes home (evidence: `src/app/router.tsx`)
- Route table → Spot search: routes search (evidence: `src/app/router.tsx`)
- Route table → Spot detail: routes details (evidence: `src/app/router.tsx`)
- Route table → Course list: routes courses (evidence: `src/app/router.tsx`)
- Route table → Course detail: routes details (evidence: `src/app/router.tsx`)
- Route table → Course recommendations: routes recommendations (evidence: `src/app/router.tsx`)
- Route table → Climate index: routes climate (evidence: `src/app/router.tsx`)
- Route table → Admin login: routes login (evidence: `src/app/router.tsx`)
- Route table → Route guard: guards admin (evidence: `src/app/router.tsx`)
- Route guard → Sync dashboard: allows access (evidence: `src/app/router.tsx`)
- Home experience → 3D hero: renders hero (evidence: `src/features/home/home-page.tsx`)
- Home experience → Live recommendations: renders recommendations (evidence: `src/features/home/home-page.tsx`)
- Spot search → Spot API: loads attractions (evidence: `src/features/spots/pages/spot-list-page.tsx`)
- Spot search → Spot map: renders locations (evidence: `src/features/spots/pages/spot-list-page.tsx`)
- Spot search → Spot detail: opens selected spot (evidence: `src/features/spots/pages/spot-list-page.tsx`)
- Climate index → Climate queries: queries indices (evidence: `src/features/climate/pages/climate-page.tsx`)
- Climate queries → Climate API: fetches data (evidence: `src/features/climate/hooks/use-climate-index.ts`)
- Sync dashboard → Climate sync: starts sync (evidence: `src/features/admin/pages/admin-dashboard-page.tsx`)
- HTTP client → Auth session: reads session (evidence: `src/shared/api/http.ts`)
- App layout → Scroll manager: renders manager (evidence: `src/shared/components/app-layout.tsx`)
- Course route preview → Kakao Maps SDK: uses map SDK (evidence: `src/features/courses/components/course-route-thumbnail.tsx`)
- HTTP client → TripCast backend: requests API (evidence: `README.md`)
- Spot API → TripCast backend: fetches spot data (evidence: `README.md`)
- Climate API → TripCast backend: fetches climate data (evidence: `README.md`)
- Climate sync → TripCast backend: requests sync (evidence: `README.md`)
- Spot map → Kakao Maps SDK: displays map (evidence: `README.md`)
