Skip to content

mo-zza/hexagonal-architecture-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexagonal Architecture Example with Spring boot

Description

This is a simple example of Hexagonal Architecture with Spring boot.

Spec

  • Java 17
  • Spring boot 3.1.5
  • Gradle 7.2
  • Spring Data JPA
  • Querydsl
  • H2 Database

Structure

Flow

graph LR
    cliet[Client] --> controller[Controller]
    controller --> usecase[UseCase - Port]
    usecase --> service[Service]
    service --> command[Command - Port]
    service --> query[Query - Port]
    command --> persistence[Persistence]
    query --> persistence[Persistence]
    persistence --> repository[Repository - Port]
    repository --> infra[Infrastructure]
Loading

Run

$ ./gradlew bootRun

About

Hexagonal architecture example project with Spring boot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages