{"id":17362828,"url":"https://github.com/mjbae/cli-order-system","last_synced_at":"2025-03-27T17:30:09.967Z","repository":{"id":257189226,"uuid":"565673289","full_name":"MJbae/cli-order-system","owner":"MJbae","description":"CLI 기반 주문 시스템","archived":false,"fork":false,"pushed_at":"2022-12-07T02:52:40.000Z","size":354,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T20:45:18.399Z","etag":null,"topics":["concurrency-testing","java","jpa","spring-shell","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MJbae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-14T04:23:15.000Z","updated_at":"2024-09-15T01:19:33.000Z","dependencies_parsed_at":"2024-09-15T08:08:03.268Z","dependency_job_id":"6e5d5635-bb7c-49c4-aed6-6c7bbf497692","html_url":"https://github.com/MJbae/cli-order-system","commit_stats":null,"previous_names":["mjbae/cli-order-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MJbae%2Fcli-order-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MJbae%2Fcli-order-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MJbae%2Fcli-order-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MJbae%2Fcli-order-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MJbae","download_url":"https://codeload.github.com/MJbae/cli-order-system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245892289,"owners_count":20689481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["concurrency-testing","java","jpa","spring-shell","unit-testing"],"created_at":"2024-10-15T19:43:30.483Z","updated_at":"2025-03-27T17:30:09.927Z","avatar_url":"https://github.com/MJbae.png","language":"Java","readme":"## 주문 시스템 [![Java CI with Gradle](https://github.com/MJbae/cli-order-system/actions/workflows/ci-script.yml/badge.svg)](https://github.com/MJbae/cli-order-system/actions/workflows/ci-script.yml)\n\u003e CLI 기반 주문 시스템\n\n### 실행 방법\n프로젝트의 루트에서 이하의 명령 실행\n```shell\ndocker build -t order-system:latest .\n```\n```shell\ndocker run -it -p 50152:50152 order-system:latest\n```\n\n### TDD 기반 구현 절차\n1. 전체적인 로직을 직관적으로 파악하기 위해 [Flow Chart](https://github.com/MJbae/cli-order-system/wiki/Flow-Chart) 작성\n2. 가장 간단한 방식(Happy Path)의 주문 기능 구현\n3. [Flow Chart](https://github.com/MJbae/cli-order-system/wiki/Flow-Chart)에 작성한 주요 분기점에 대해 실패하는 단위 테스트 작성 \n4. 실패하는 테스트를 성공시키기 위해 코드 수정\n5. 3번과 4번 과정을 충분히 반복한 후, 테스트 기반으로 전체적인 코드 리팩토링\n\n### 프로젝트 구조\n본 프로젝트는 이하의 5개 패키지로 구성 \n* cli: shell 환경의 입출력 처리\n* application: 비지니스 로직 처리\n* domain: 엔티티 정의\n* exception: 커스텀 예외 정의\n* infra: 영속적 데이터 처리\n\n### 사용 기술\n* Application Framework: Spring Shell\n* RDBMS \u0026 ORM: H2, Spring Data JPA\n* Test Framework: JUnit\n\n### 참고 자료\n* Spring Shell: [Baeldung](https://www.baeldung.com/spring-shell-cli)\n* Unit Test: [better specs](https://www.betterspecs.org/), [기계인간 블로그](https://johngrib.github.io/wiki/junit5-nested/#describe---context---it-%ED%8C%A8%ED%84%B4)\n* Concurrency Test: [삐멜 소프트엔지니어](https://imasoftwareengineer.tistory.com/100)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjbae%2Fcli-order-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjbae%2Fcli-order-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjbae%2Fcli-order-system/lists"}