Skip to content

A simple example about how works a Hexagonal Architecture

Notifications You must be signed in to change notification settings

bvegaM/hexagonal-architecture

Repository files navigation

Hexagonal architecture Example practice

Developed by: Bryam Vega


Project structure:

├── main
│         ├── java
│         │         └── com
│         │             └── blocking
│         │                 └── hexagonal
│         │                     ├── HexagonalApplication.java
│         │                     ├── application
│         │                     │         ├── ports
│         │                     │         │         ├── input
│         │                     │         │         │   └── UserIPort.java
│         │                     │         │         └── output
│         │                     │         │             └── UserOPort.java
│         │                     │         └── service
│         │                     │             └── UserService.java
│         │                     ├── domain
│         │                     │     └── User.java
│         │                     └── infrastructure
│         │                         ├── adapters
│         │                         │         ├── input
│         │                         │         │         ├── controller
│         │                         │         │         │      └── UserController.java
│         │                         │         │         ├── dto
│         │                         │         │         │      └── UserDTO.java
│         │                         │         │         └── mapper
│         │                         │         │             └── UserDTOMapper.java
│         │                         │         └── output
│         │                         │             ├── UserAdapter.java
│         │                         │             ├── entity
│         │                         │             │      └── UserEntity.java
│         │                         │             ├── mapper
│         │                         │             │      └── UserEntityMapper.java
│         │                         │             └── repository
│         │                         │                 └── UserRepository.java
│         │                         └── exception
│         │                                └── APIExceptionHandler.java
│         └── resources
│             ├── application.properties
│             ├── static
│             └── templates
└── test
    └── java
        └── com
            └── blocking
                └── hexagonal
                    └── HexagonalApplicationTests.java

About

A simple example about how works a Hexagonal Architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages