Please enable JavaScript.
Coggle requires JavaScript to display documents.
Clean architecture, Ports, https://github.com/alireza-bonab/clean-todo -…
Clean architecture
FOLDER ARCHITECTURE
-
Config
-
here you will see all the instances of classes and passing them to each other to wire the application and run the project.
-
a lot of helper static factory functions that are used to instantiate the classes and getting the objects and then passing those objects to other classes as dependency injection
-
DATA
-
-
For this sample, I implemented an InMemory instance of the TodoEntityGateway.
-
-
CORE
-
USE CASES
-
-
Each use-case needs some classes like error classes, RequestDTO and ResponseDTO, and use-case class itself.
-
-
-
-
-
-
CONCEPTS
-
-
-
-
CONFIGURATION COMPONENT
It is the Configuration component, So when we are ready with everything (Use Cases, Database, Web API Server, … ) we need something to wire up all components and create the instances and pass the object instances to constructors to turn on the whole application
STRUCTURE
-
-
IO/ FRAMEWORKS
Detailed frameworks like databases or services should live here and the concrete implementation is based on the interfaces from Core.
ENTRY POINTS - DRIVERS
Every detail that enables humans to communicate with the application business logic goes here. This layer opens the door to the outside world. Every REST API implementations or CLI or any driver lives here.
CONFIGURATION
This is the most detailed part of the project. All wiring of the project implements here, everything related to instantiating objects passing dependency injections goes here.
-
-