[Docs] 프로젝트 README 및 Compose-React 비교 정리 - #21
Merged
Conversation
- Vite 기본 README를 프로젝트 전용 README로 교체 - Android 금융 테스트를 React Web POC로 구현한 배경 정리 - 주요 화면 이미지와 구현 범위 추가 - 프로젝트 구조와 State / Props / Callback 흐름 설명 - 결과 계산 로직과 Vitest 테스트 내용 정리 - GitHub Actions CI 흐름 문서화 - Compose와 React의 역할 비교 표 추가 - 실행 방법과 구현하며 확인한 점 정리
46 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 내용
기존 Vite 기본 README를 제거하고,
현재까지 구현한 React Web POC 내용을 기준으로 프로젝트 전용 README를 작성했습니다.
이번 README에서는 프로젝트의 구현 범위를 과장하지 않고,
기존 Android 금융 테스트와 React POC의 관계,
상태 및 데이터 흐름,
테스트와 CI,
Compose와 React의 구현 방식 차이를 중심으로 정리했습니다.
주요 변경 사항
프로젝트 소개
기존 Android 유형 테스트 전체를 React로 마이그레이션한 것이 아니라,
기존 금융 테스트 1개를 React + TypeScript로 다시 구현한 Web POC임을 명확히 작성했습니다.
기존 프로젝트의 흐름도 다음 정도로만 짧게 정리했습니다.
주요 화면
기존 반응형 UI 검증 과정에서 사용한 실제 화면 이미지를 README에 재사용했습니다.
포함한 화면:
모바일 3개 화면은 한 번에 흐름을 확인할 수 있도록 가로로 배치했습니다.
구현 범위 & Tech Stack
실제 React POC에서 구현한 범위만 작성했습니다.
실제로 사용한 기술만 Tech Stack에 포함했습니다.
프로젝트 구조
전체 Vite 기본 파일을 나열하지 않고,
이번 구현에서 역할이 있는 주요 구조만 정리했습니다.
각 영역의 역할도 다음과 같이 구분했습니다.
별도의 Architecture 이름은 붙이지 않았습니다.
State 및 데이터 흐름
App.tsx에서 관리하는 핵심 State를 정리했습니다.데이터 흐름도 함께 작성했습니다.
부모에서 Props로 데이터를 전달하고,
자식의 이벤트는 Callback을 통해 다시 부모로 전달하는 흐름을 설명했습니다.
주요 구현 포인트
README에 다음 구현 판단을 정리했습니다.
currentQuestion,totalQuestions,progressPercent,result처럼기존 State에서 계산 가능한 값은 별도 State로 저장하지 않고
Derived Value로 처리한 점도 포함했습니다.
결과 계산 및 테스트
기존 Kotlin 금융 테스트의 결과 계산 규칙을 React 버전에서도 유지했습니다.
결과 계산 로직은 UI와 분리된 Pure Function으로 구성했고,
Vitest 단위 테스트 내용을 README에 정리했습니다.
주요 검증 범위:
GitHub Actions CI
Issue #10에서 구성한 실제 CI 흐름을 README에 정리했습니다.
Workflow YAML 전체를 복사하지 않고,
현재 프로젝트에서 실제 사용하는 검증 흐름만 설명했습니다.
Compose ↔ React 비교
Android Compose와 React가 완전히 동일한 개념이라는 의미가 아니라,
이번 POC에서 맡은 역할과 데이터 흐름을 기준으로 비교했습니다.
주요 비교 항목:
실제 구현 경험을 기준으로 설명하고,
React 실무 프로젝트나 Android 전체 마이그레이션처럼 표현하지 않았습니다.
실행 방법
Node.js 24 기준으로 실행 방법을 작성했습니다.
검증 명령:
README 작성 원칙
이번 README에서는 다음 내용을 의도적으로 제외했습니다.
실제 구현한 범위와 코드에서 확인 가능한 내용만 작성했습니다.
변경 파일
README 외 production code, test code, CI workflow, dependency 파일은 수정하지 않았습니다.
검증
README 작성 후 기존 프로젝트가 정상적으로 유지되는지 확인했습니다.
npm.cmd run lint npm.cmd run test:run npm.cmd run build npx.cmd prettier --check .결과:
확인 사항
quality-check성공 확인Related Issue: #11