Skip to content

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.ts

To work with the delivery layer you should

  1. Prepare the infrastructure layer and provide the repositories we need through providers.
  2. Prepare the application layer and provide the services we need through providers.
  3. Implement presenters, schemas, and everything else we need for further use