Giter Club home page Giter Club logo

clean-architecture's Introduction

클린 아키텍처 적용해보기

책 [로버트 마틴 - 만들면서 배우는 클린 아키텍처] 를 읽고나서 책의 예시가 아닌 구현했던 도메인에 클린아키텍처를 적용해보고 싶었고, 포인트 도메인을 선택해서 구현하게 되었습니다.

포인트 적립

  • 구현 기능

    • 회원별 적립금 합계 조회
    • 회원별 적립금 적립/사용 내역 조회(페이징처리 포함)
    • 회원별 적립금 적립
    • 회원별 적립금 사용 - 적립금 사용시 우선순위는 먼저 적립된 순서로 사용(FIFO)
    • 적립금의 유효기간 구현 (특정기간 이후 배치를 통한 삭제 처리)
  • 조건

    • 동시성 이슈가 발생할 수 있는 부분을 염두에 둔 개발
    • JPA 사용

api 문서

http://localhost:8080/swagger-ui/index.html

개발환경

Java11, Spring Boot 2.7.15, Spring Data JPA, H2

├── presentation
│   ├── controller
│   └── payload
├── usecases
│─ port
│   ├── domain
│   ├───── user
│   ├───── points
│   ├───── point
│   ├── service
│   ├───── PointHistoryEventHandler
│   └── schedule
├── persistence
│─ adapter
│   ├── entity
│   └── repository
└── common

clean-architecture's People

Contributors

yeojin822 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.