Skip to content

Latest commit

 

History

History
94 lines (79 loc) · 1.89 KB

File metadata and controls

94 lines (79 loc) · 1.89 KB

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