How jjontteok/dondon works
돈돈 가계부는 개인 예산·거래 관리 앱으로, 브라우저에서 설정과 거래를 입력하면 API가 검증·처리하고 카테고리별로 저장합니다. 사용자는 월급날 기준 기간을 달력에서 살펴보고 날짜별 거래 및 기간 합계를 확인합니다. README에 명시된 시트/메모리 저장소 선택, 설정 가능한 카테고리와 급여일, 차트 기능도 포함했습니다. 관계는 발췌 소스·SOURCE INDEX 참조·README로 확인되는 범위에 한정했습니다. 일부 화면·저장소 구현은 발췌되지 않아 세부 내부 동작 연결은 표시하지 않았습니다.
Main entry points: BudgetApp.tsx 가계부 화면 · container.ts 서비스 구성 · BudgetService.ts 예산 유스케이스 · repositories.ts 리포지토리
Components 29
사용자 화면
- 가계부 화면
src/components/BudgetApp.tsx - 기간 달력
src/components/Calendar.tsx - 날짜 내역
src/components/DayPanel.tsx - 기간 요약
src/components/PeriodSummary.tsx - 도넛 차트
src/components/DonutChart.tsx - 거래 입력
src/components/TransactionForm.tsx - 설정 화면
src/components/SettingsDialog.tsx - 로그인 화면
src/components/LoginForm.tsx - 브라우저 API
src/client/api.ts - 데이터 훅
src/client/hooks
API·인증
- 가계부 API 라우트
src/app/api - 인증 라우트
src/app/api/auth - HTTP 응답 처리
src/lib/http.ts - 세션 인증
src/lib/session.ts
유스케이스
예산 도메인
저장소
- 테이블 추상화
src/infrastructure/storage/Table.ts - 시트 테이블
src/infrastructure/sheets/SheetTable.ts - Google Sheets REST
src/infrastructure/sheets/SheetsClient.ts - 메모리 테이블
src/infrastructure/storage/MemoryTable.ts - 시트 스키마
src/infrastructure/storage/schemas.ts
Other components
- 가계부 사용자
- Google Sheets
Connections 37
- 가계부 사용자 → 가계부 화면: 사용
- 가계부 화면 → 기간 달력: 표시
src/components/BudgetApp.tsx - 가계부 화면 → 날짜 내역: 표시
src/components/BudgetApp.tsx - 가계부 화면 → 기간 요약: 표시
src/components/BudgetApp.tsx - 가계부 화면 → 설정 화면: 표시
src/components/BudgetApp.tsx - 날짜 내역 → 도넛 차트: 렌더링
src/components/DayPanel.tsx - 기간 요약 → 도넛 차트: 렌더링
src/components/PeriodSummary.tsx - 날짜 내역 → 거래 입력: 렌더링
src/components/DayPanel.tsx - 가계부 화면 → 데이터 훅: 사용
src/components/BudgetApp.tsx - 데이터 훅 → 브라우저 API: 호출
src/client/hooks/useTransactions.ts - 설정 화면 → 브라우저 API: 호출
src/components/SettingsDialog.tsx - 로그인 화면 → 브라우저 API: 호출
- 브라우저 API → 가계부 API 라우트: HTTP 요청
src/client/api.ts - 가계부 API 라우트 → HTTP 응답 처리: 공통 처리
src/app/api/transactions/route.ts - 가계부 API 라우트 → 서비스 구성: 서비스 획득
src/app/api/transactions/route.ts - 인증 라우트 → 세션 인증: 세션 처리
src/app/api/auth/login/route.ts - 가계부 사용자 → 로그인 화면: 로그인
- 예산 유스케이스 → 리포지토리: 저장소 위임
src/application/BudgetService.ts - 서비스 구성 → 예산 유스케이스: 생성
src/application/container.ts - 서비스 구성 → 리포지토리: 구성
src/application/container.ts - 서비스 구성 → 시트 테이블: 선택 구성
src/application/container.ts - 서비스 구성 → Google Sheets REST: 구성
src/application/container.ts - 서비스 구성 → 메모리 테이블: 대체 구성
src/application/container.ts - 리포지토리 → 테이블 추상화: 추상화 사용
src/application/repositories.ts - 리포지토리 → 시트 스키마: 스키마 사용
src/application/repositories.ts - 시트 테이블 → Google Sheets REST: REST 호출
- Google Sheets REST → Google Sheets: 시트 접근
- 메모리 테이블 → 테이블 추상화: 구현
src/infrastructure/storage/MemoryTable.ts - 예산 유스케이스 → 거래 검증: 입력 검증
src/application/BudgetService.ts - 예산 유스케이스 → 카테고리 카탈로그: 카탈로그 규칙
src/application/BudgetService.ts - 예산 유스케이스 → 가계부 설정: 설정 검증
src/application/BudgetService.ts - 가계부 화면 → 거래 집계: 집계 생성
src/components/BudgetApp.tsx - 가계부 화면 → 급여일 기간: 기간 계산
src/components/BudgetApp.tsx - 기간 달력 → 거래 집계: 일별 집계
src/components/Calendar.tsx - 기간 달력 → 급여일 기간: 기간 표시
src/components/Calendar.tsx - 거래 집계 → 카테고리 카탈로그: 카탈로그 참조
src/domain/ledger.ts - 급여일 기간 → 가계부 설정: 시작일 검증
src/domain/settings.ts