Giter Site home page Giter Site logo

layered-architecture's Introduction

레이어드 아키텍처 학습

openjdk-17

spring-boot

h2

swagger

jpa

slf4j


프로젝트 주요 기능과 목적

  • 레이어드 아키텍처를 학습하기 위함입니다.
  • 최종적으로 레이어드 아키텍처 Template 을 만드는 것이 목표입니다.

프로젝트 구조

img.png

의존관계

  • UI LayerService Layer만 의존해야한다.
  • Service LayerRepository Layer만 의존해야한다.
    • 예외) Application LayerInfrastructure Layer에 의존할 수도 있다.

계층별 구성 (간단)

  • Presentation Layer
    • Controller
  • Application Layer
    • Service
  • Domain
    • Entity
    • Domain
  • Infrastructure Layer
    • Repository

실제 프로젝트 구조

img.png

ERD

img.png


설치 방법

  1. JDK 21 설치
  2. Git pull
  3. 어플리케이션 실행

테스트 방법

API 문서 : http://localhost:8080/swagger-ui/index.html
API 문서 다운로드 (yaml) : http://localhost:8080/api-docs.yaml
API 문서 다운로드 (json) : http://localhost:8080/api-docs

  1. LayeredArchitectureApplication 을 실행합니다.
  2. 위 Swagger 문서를 보고 API 를 호출 합니다.

라이브러리 정보

  • spring-boot-starter (latest)
  • spring-boot-starter-web (latest)
  • spring-boot-starter-data-jpa (latest)
  • spring-boot-starter-test (latest)
  • spring-boot-starter-validation (latest)
  • springdoc-openapi-starter-webmvc-ui (2.6.0)
  • lombok (latest)
  • h2 (latest)
  • junit-platform-launcher (latest)

layered-architecture's People

Contributors

babysean 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.