Skip to content

Commit

Permalink
docs: show the ports and adapters layers
Browse files Browse the repository at this point in the history
  • Loading branch information
shakonord authored and ShahriyarR committed Apr 12, 2023
1 parent 4017ba0 commit 639f1c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@ To run database migrations -> make migrate

For development purposes the main command is `make install-dev` as it will enable editable installation.

## Layers with classes
## Ports and Adapters layers

### Repositories + UOWs + Use Cases
![hexagonal architecture](docs/hexagonal_calculator.png)


## Understanding Layers with classes

### Repositories + UOWs + Use Cases + Entrypoints

```mermaid
classDiagram
Expand Down Expand Up @@ -134,9 +139,9 @@ classDiagram
CalculationSqlAlchemyUnitOfWork ..|> CalculationUnitOfWorkInterface: implements
CalculateUseCase ..|> CalculateUseCaseInterface: implements
OperandsService ..|> OperandsServiceInterface: implements
CalculationSqlAlchemyUnitOfWork ..> CalculationSqlAlchemyRepository: depends on
CalculateUseCase ..> CalculationSqlAlchemyUnitOfWork: depends on
CalculateUseCase ..> OperandsService: depends on
CalculationSqlAlchemyUnitOfWork ..> CalculationRepositoryInterface: depends on
CalculateUseCase ..> CalculationUnitOfWorkInterface: depends on
CalculateUseCase ..> OperandsServiceInterface: depends on
```


Expand Down
Binary file added docs/hexagonal_calculator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 639f1c0

Please sign in to comment.