π§ - Arquitetura Hexagonal
Projeto baseado em arquitetura hexagonal;
Arquitetura Hexagonal, tambΓ©m conhecida como arquitetura de porta e adaptador (Ports and Adapters);
Γ um estilo arquitetural de software que visa promover a separaΓ§Γ£o de preocupaΓ§Γ΅es e a modularidade do sistema.
π - Estrutura de Pastas:
βββ hexagonal
βΒ Β βββ adapters
βΒ Β | βββ in
| | | βββ consumer
| | | | βββ message
| | | βββ controller
| | | | βββ request
| | | | βββ response
| | βββ out
| | | βββ client
| | | | βββ response
| | | βββ repository
| | | | βββ entity
βΒ Β βββ application
βΒ Β | βββ core
| | | βββ domain
| | | βββ exceptions
| | | βββ usecase
βΒ Β | βββ ports
βΒ Β | | βββ in
| | | βββ out
βΒ Β βββ config
βββ test
βΒ Β βββ hexagonal
| | βββ architecture
π - Diagrama Funcional:
βοΈ - Funcionalidades:
POST /api/v1/customers
Content-Type: application/json
{
"name" : " Ronaldo" ,
"cpf" : " 59847812014" ,
"zipCode" : " 38400000"
}
GET /api/v1/customers/{id}
Content-Type: application/json
PUT /api/v1/customers/{id}
Content-Type: application/json
{
"name" : " Ronaldo" ,
"cpf" : " 59847812014" ,
"zipCode" : " 38400000"
}
DELETE /api/v1/customers/{id}
Content-Type: application/json
CriaΓ§Γ£o do producer Kafka;
CriaΓ§Γ£o do consumer Kafka;
βοΈ - Tecnologias/Ferramentas:
Kotlin;
MongoDB;
Docker;
JUnit;
Kafka;
Kafdrop;
Spring Boot;
Gradle;