DDD template

This repoitory follows Data Driven Design Strcuture. In this structure, all the code is divided into four layers each being independent of each other.

  • Application
  • Domain
  • Infrastructure
  • Presentation

alt text

Application

This layers contains all the business logic and stores all the blocs. This layer is completely independednt of infrastructure layer and just contacts with Presentation and Domain Layer.

Domain

This layer is in contact with Application and Infrastructure layer where we defines all the validation, model classes, abstract classes to be completed in infrastructure layer etc.

Infrastructure

This layer contains all the backend related code that is related to API, lets say if in future we wishes to move on AWS from firebase then we need to touch only this layer.

Presentation

This layer contains all the screen i.e. UI/UX part will be there and will remain in contact with application layer only.

File Strcucture

Outer Structure