Skip to content

carloshenriquefs/hexagonal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

37 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 - 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:

hexagonal

✏️ - Funcionalidades:

  • Endpoint - CREATE;
POST /api/v1/customers
Content-Type: application/json
{
  "name" : "Ronaldo",
  "cpf" : "59847812014",
  "zipCode" : "38400000"
}
  • Endpoint - READ BY ID;
GET /api/v1/customers/{id}
Content-Type: application/json
  • Endpoint - UPDATE;
PUT /api/v1/customers/{id}
Content-Type: application/json
{
  "name" : "Ronaldo",
  "cpf" : "59847812014",
  "zipCode" : "38400000"
}
  • Endpoint - DELETE;
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;

About

βœ…β€οΈπŸ§  - Arquitetura Hexagonal

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages