Delivery Layer (contexts/{context}/delivery/)
The sections below present the main components of the package for working with the delivery (UI) layer.
Expected folder structure:
├── delivery
│ ├── article
│ │ ├── ArticlePresenter.ts
│ │ ├── constants
│ │ │ ├── ArticleTableColumns.ts
│ │ │ └── index.ts
│ │ ├── index.ts
│ │ └── schema
│ │ ├── CreateArticleSchema.ts
│ │ ├── UpdateArticleSchema.ts
│ │ └── index.ts
│ ├── auth
│ │ ├── Actions.ts
│ │ ├── index.ts
│ │ └── schema
│ │ ├── LoginSchema.ts
│ │ └── index.tsTo work with the delivery layer you should
- Prepare the infrastructure layer and provide the repositories we need through providers.
- Prepare the application layer and provide the services we need through providers.
- Implement presenters, schemas, and everything else we need for further use