Skip to content

daggerok/ddd-spring-hexagonal-architecture

Repository files navigation

DDD with Spring Build Status

Hexagonal DDD application architecture

    +----------+
    | Election |                      Hexagonal architecture
    +----------+
       | 1                 +------------------------------------------+
       |                   | Infrastructure (framework related) layer |
       V 0..*              |  +------------------------------------+  |
      +-----------+        |  |    Application (business logic)    |  |
      | Candidate |        |  |           service layer            |  |
      +-----------+        |  |  +------------------------------+  |  |
         | 1               |  |  |    Domain (Election) layer   |  |  |
         |                 |  |  +------------------------------+  |  |
         V 0..*            |  +------------------------------------+  |
        +-------+          +------------------------------------------+
        | Voter |
        +-------+

build run and test

  1. build
    ./mvnw spring-boot:run -f feature
    # ./mvnw spring-boot:run -f layer
  2. And use api.http file from IntelliJ IDEA.

resources