# asdeasdxz12654-star/event-map architecture

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

- Interactive diagram: https://gitdiagram.com/asdeasdxz12654-star/event-map
- Repository: https://github.com/asdeasdxz12654-star/event-map

## Overview

게임이벤트허브는 국내 게임·코스프레·게임음악·일러스트 행사를 모아 방문자에게 제공하고 관리자가 검수·보완하는 서비스입니다. 방문자는 홈·달력에서 행사를 찾고 상세 정보를 확인하며, 관리자는 행사와 부가 콘텐츠를 편집하고 수집 결과를 검수합니다. 크롤러는 매일 행사 정보를 초안으로 모으고, 별도 작업은 이미지 미러링·소스 감시·포스터 보완을 담당합니다. 읽기는 브라우저에서 Supabase로, 쓰기는 Worker를 거친다는 구성이 README에 명시돼 있습니다. 크롤러와 일부 화면 구현은 미열람이므로 세부 내부 호출은 생략했습니다.

Main entry points: [`src/App.jsx`](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/App.jsx) (앱 라우팅), [`src/supabase.js`](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/supabase.js) (Supabase 데이터), [`src/lib/adminApi.js`](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/lib/adminApi.js) (관리 API 클라이언트), [`workers/api-proxy/src/index.js`](https://github.com/asdeasdxz12654-star/event-map/blob/master/workers/api-proxy/src/index.js) (API 프록시)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["행사 탐색"]
  node_app["앱 라우팅<br/>[App.jsx]"]
  node_home["행사 탐색<br/>[HomePage.jsx]"]
  node_eventdetail["행사 상세"]
  node_bookmarks["북마크<br/>[BookmarksPage.jsx]"]
  node_calendar["달력<br/>[CalendarPage.jsx]"]
  node_eventdata["행사 규칙<br/>[events.js]"]
  node_eventhooks["행사 조회"]
end

subgraph group_editorial["관리·검수"]
  node_adminpages["관리 화면"]
  node_eventform["행사 편집<br/>[AdminEventForm.jsx]"]
  node_contentediting["부가 콘텐츠 편집"]
  node_admincontext["관리자 세션<br/>[AdminContext.jsx]"]
  node_adminclient["관리 API 클라이언트<br/>[adminApi.js]"]
end

subgraph group_collection["수집·운영"]
  node_crawler["행사 수집<br/>[crawl.mjs]"]
  node_crawlerops["이미지·소스 관리"]
end

subgraph group_platform["데이터·API"]
  node_worker["API 프록시<br/>[index.js]"]
  node_workeradmin["관리 API 경로<br/>[admin.js]"]
  node_seoul["혼잡도 프록시<br/>[seoul.js]"]
  node_supabase[("Supabase 데이터<br/>[supabase.js]")]
end

subgraph group_engagement["알림·공개"]
  node_notifications["푸시 발송"]
  node_pushhook["푸시 구독"]
  node_firebase["Firebase Messaging<br/>[firebase.js]"]
  node_preview["행사 링크 미리보기<br/>[&#91;id&#93;.js]"]
  node_fcmsvc["FCM 서비스"]
end

node_visitor(("방문자"))
node_admin(("관리자"))

node_visitor -->|"탐색 시작"| node_app
node_app -->|"라우팅"| node_home
node_app -->|"라우팅"| node_calendar
node_app -->|"라우팅"| node_bookmarks
node_app -->|"라우팅"| node_eventdetail
node_home -->|"행사 조회"| node_eventhooks
node_eventdetail -->|"상세 조회"| node_eventhooks
node_eventhooks -.->|"읽기"| node_supabase
node_home -->|"필터 적용"| node_eventdata
node_admin -->|"관리 진입"| node_app
node_app -->|"관리 라우팅"| node_adminpages
node_adminpages -->|"행사 편집"| node_eventform
node_adminpages -->|"부가 정보 관리"| node_contentediting
node_eventform -->|"저장 요청"| node_adminclient
node_contentediting -->|"변경 요청"| node_adminclient
node_adminclient -->|"토큰 조회"| node_admincontext
node_admincontext -->|"로그인 요청"| node_worker
node_adminclient -->|"쓰기 요청"| node_worker
node_worker -->|"경로 분기"| node_workeradmin
node_workeradmin -->|"데이터 변경"| node_supabase
node_crawler -->|"초안 기록"| node_supabase
node_crawlerops -.->|"이미지·감시 데이터"| node_supabase
node_worker -->|"경로 분기"| node_seoul
node_eventdetail -.->|"공유 미리보기"| node_preview
node_notifications -.->|"대상 조회"| node_supabase
node_notifications -.->|"푸시 발송"| node_fcmsvc
node_pushhook -->|"구독 처리"| node_firebase
node_pushhook -.->|"구독 기록"| node_supabase

click node_app "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/App.jsx"
click node_home "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/pages/HomePage.jsx"
click node_eventdetail "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/pages/EventDetailPage.jsx"
click node_bookmarks "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/pages/BookmarksPage.jsx"
click node_calendar "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/pages/CalendarPage.jsx"
click node_eventdata "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/data/events.js"
click node_eventhooks "https://github.com/asdeasdxz12654-star/event-map/tree/master/src/hooks"
click node_adminpages "https://github.com/asdeasdxz12654-star/event-map/tree/master/src/pages/admin"
click node_eventform "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/components/AdminEventForm.jsx"
click node_contentediting "https://github.com/asdeasdxz12654-star/event-map/tree/master/src/components"
click node_admincontext "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/contexts/AdminContext.jsx"
click node_adminclient "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/lib/adminApi.js"
click node_crawler "https://github.com/asdeasdxz12654-star/event-map/blob/master/crawler/src/crawl.mjs"
click node_crawlerops "https://github.com/asdeasdxz12654-star/event-map/tree/master/crawler/src"
click node_worker "https://github.com/asdeasdxz12654-star/event-map/blob/master/workers/api-proxy/src/index.js"
click node_workeradmin "https://github.com/asdeasdxz12654-star/event-map/blob/master/workers/api-proxy/src/routes/admin.js"
click node_seoul "https://github.com/asdeasdxz12654-star/event-map/blob/master/workers/api-proxy/src/routes/seoul.js"
click node_supabase "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/supabase.js"
click node_notifications "https://github.com/asdeasdxz12654-star/event-map/blob/master/notifier/src/send-notifications.mjs"
click node_pushhook "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/hooks/usePushNotifications.js"
click node_firebase "https://github.com/asdeasdxz12654-star/event-map/blob/master/src/firebase.js"
click node_preview "https://github.com/asdeasdxz12654-star/event-map/blob/master/functions/events/%5Bid%5D.js"

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_home,node_eventdetail,node_bookmarks,node_calendar,node_eventdata,node_eventhooks toneBlue
class node_adminpages,node_eventform,node_contentediting,node_admincontext,node_adminclient toneAmber
class node_crawler,node_crawlerops toneMint
class node_worker,node_workeradmin,node_seoul,node_supabase toneRose
class node_notifications,node_pushhook,node_firebase,node_preview,node_fcmsvc,node_visitor,node_admin toneIndigo
```

## Components

### 행사 탐색

- [앱 라우팅](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/App.jsx): `src/App.jsx`
- [행사 탐색](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/pages/HomePage.jsx): `src/pages/HomePage.jsx`
- [행사 상세](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/pages/EventDetailPage.jsx): `src/pages/EventDetailPage.jsx`
- [북마크](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/pages/BookmarksPage.jsx): `src/pages/BookmarksPage.jsx`
- [달력](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/pages/CalendarPage.jsx): `src/pages/CalendarPage.jsx`
- [행사 규칙](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/data/events.js): `src/data/events.js`
- [행사 조회](https://github.com/asdeasdxz12654-star/event-map/tree/master/src/hooks): `src/hooks`

### 관리·검수

- [관리 화면](https://github.com/asdeasdxz12654-star/event-map/tree/master/src/pages/admin): `src/pages/admin`
- [행사 편집](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/components/AdminEventForm.jsx): `src/components/AdminEventForm.jsx`
- [부가 콘텐츠 편집](https://github.com/asdeasdxz12654-star/event-map/tree/master/src/components): `src/components`
- [관리자 세션](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/contexts/AdminContext.jsx): `src/contexts/AdminContext.jsx`
- [관리 API 클라이언트](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/lib/adminApi.js): `src/lib/adminApi.js`

### 수집·운영

- [행사 수집](https://github.com/asdeasdxz12654-star/event-map/blob/master/crawler/src/crawl.mjs): `crawler/src/crawl.mjs`
- [이미지·소스 관리](https://github.com/asdeasdxz12654-star/event-map/tree/master/crawler/src): `crawler/src`

### 데이터·API

- [API 프록시](https://github.com/asdeasdxz12654-star/event-map/blob/master/workers/api-proxy/src/index.js): `workers/api-proxy/src/index.js`
- [관리 API 경로](https://github.com/asdeasdxz12654-star/event-map/blob/master/workers/api-proxy/src/routes/admin.js): `workers/api-proxy/src/routes/admin.js`
- [혼잡도 프록시](https://github.com/asdeasdxz12654-star/event-map/blob/master/workers/api-proxy/src/routes/seoul.js): `workers/api-proxy/src/routes/seoul.js`
- [Supabase 데이터](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/supabase.js): `src/supabase.js`

### 알림·공개

- [푸시 발송](https://github.com/asdeasdxz12654-star/event-map/blob/master/notifier/src/send-notifications.mjs): `notifier/src/send-notifications.mjs`
- [푸시 구독](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/hooks/usePushNotifications.js): `src/hooks/usePushNotifications.js`
- [Firebase Messaging](https://github.com/asdeasdxz12654-star/event-map/blob/master/src/firebase.js): `src/firebase.js`
- [행사 링크 미리보기](https://github.com/asdeasdxz12654-star/event-map/blob/master/functions/events/%5Bid%5D.js): `functions/events/[id].js`
- **FCM 서비스**

### Other components

- **방문자**
- **관리자**

## Connections

- 방문자 → 앱 라우팅: 탐색 시작 (evidence: `README.md`)
- 앱 라우팅 → 행사 탐색: 라우팅 (evidence: `src/App.jsx`)
- 앱 라우팅 → 달력: 라우팅 (evidence: `src/App.jsx`)
- 앱 라우팅 → 북마크: 라우팅 (evidence: `src/App.jsx`)
- 앱 라우팅 → 행사 상세: 라우팅 (evidence: `src/App.jsx`)
- 행사 탐색 → 행사 조회: 행사 조회 (evidence: `src/pages/HomePage.jsx`)
- 행사 상세 → 행사 조회: 상세 조회 (evidence: `src/pages/EventDetailPage.jsx`)
- 행사 조회 → Supabase 데이터: 읽기 (evidence: `README.md`)
- 행사 탐색 → 행사 규칙: 필터 적용 (evidence: `src/pages/HomePage.jsx`)
- 관리자 → 앱 라우팅: 관리 진입 (evidence: `README.md`)
- 앱 라우팅 → 관리 화면: 관리 라우팅 (evidence: `src/App.jsx`)
- 관리 화면 → 행사 편집: 행사 편집 (evidence: `src/pages/admin/EventEditPage.jsx`)
- 관리 화면 → 부가 콘텐츠 편집: 부가 정보 관리 (evidence: `src/pages/admin/EventEditPage.jsx`)
- 행사 편집 → 관리 API 클라이언트: 저장 요청 (evidence: `src/components/AdminEventForm.jsx`)
- 부가 콘텐츠 편집 → 관리 API 클라이언트: 변경 요청 (evidence: `src/components/PerformerManager.jsx`)
- 관리 API 클라이언트 → 관리자 세션: 토큰 조회 (evidence: `src/lib/adminApi.js`)
- 관리자 세션 → API 프록시: 로그인 요청 (evidence: `src/contexts/AdminContext.jsx`)
- 관리 API 클라이언트 → API 프록시: 쓰기 요청 (evidence: `README.md`)
- API 프록시 → 관리 API 경로: 경로 분기 (evidence: `workers/api-proxy/src/index.js`)
- 관리 API 경로 → Supabase 데이터: 데이터 변경 (evidence: `README.md`)
- 행사 수집 → Supabase 데이터: 초안 기록 (evidence: `README.md`)
- 이미지·소스 관리 → Supabase 데이터: 이미지·감시 데이터 (evidence: `README.md`)
- API 프록시 → 혼잡도 프록시: 경로 분기 (evidence: `workers/api-proxy/src/index.js`)
- 행사 상세 → 행사 링크 미리보기: 공유 미리보기 (evidence: `README.md`)
- 푸시 발송 → Supabase 데이터: 대상 조회 (evidence: `README.md`)
- 푸시 발송 → FCM 서비스: 푸시 발송 (evidence: `README.md`)
- 푸시 구독 → Firebase Messaging: 구독 처리 (evidence: `src/hooks/usePushNotifications.js`)
- 푸시 구독 → Supabase 데이터: 구독 기록 (evidence: `README.md`)
