Skip to content

gafda/Day13HexArchExercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexagonal Architecture Exercise

Exercise application Diagram

Description

This exercise is a simple implementation of a Hexagonal Architecture. The application is a simple credit system that allows for credit listing, portability requests, and credit requests. The application is divided into two main parts, the Primary and Secondary ports. The Primary ports are the main entry points for the application, and the Secondary ports are the secondary entry points for the application. The Primary ports are the main entry points for the application, and the Secondary ports are the secondary entry points for the application.

Requirements

  • DotNetCore SDK v8.0

Sample ouput

$ dotnet run --project .\Day13HexArchExercise\Day13HexArchExercise.csproj
List current credits of customer: 1
        Credit id:1 with 1000 $

Customer 1 does not have enough credit for 5000 more.
List current credits of customer: 1
        Credit id:1 with 1000 $

================================================================================

List current credits of customer: 2
        Credit id:2 with 2000 $

Customer 2 has enought credit for 5000 more.
Customer: 2
        - Added credit 10 with 2000 $ from portability info? Yes
List current credits of customer: 2
        Credit id:2 with 2000 $
        Credit id:10 with 2000 $

Implementation of Primary Ports

Credit listing and be able to check if customer have enough for a given amount.

For portability credit requests from an individual or an external financial entity.

Implementation of Primary Adapters



Implementation of Secondary Ports

For storing and retrieving credit information from either a SQL or NoSQL databases.

For requesting information from internal and external entities.

Implementation of Secondary Adapters

About

Hexagram Architecture exercise.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages