mtl-shared-domain
v1.2.0
Published
Shared domain layer for MTL app
Readme
MTL Shared Domain
This repository contains the domain layer for the MTL application. The domain layer is responsible for representing the core business logic and rules of the application.
Table of Contents
Introduction
The MTL Shared Domain repository encapsulates the core business logic and domain models used across the MTL application. It ensures that the business rules are consistently applied and maintained.
Structure
The repository is organized as follows:
mtl-shared-domain/
├── src/
│ ├── budget.types.ts
│ ├── index.ts
│ ├── product.types.ts
│ ├── report.types.ts
│ └── user.types.ts
├── README.md
└── package.jsonsrc/budget.types.ts: Contains the types related to budgets.src/index.ts: Exports all the types from the domain layer.src/product.types.ts: Contains the types related to products.src/report.types.ts: Contains the types related to reports.src/user.types.ts: Contains the types related to users.
Installation
To install the dependencies, run:
npm installUsage
To use the domain layer in your application, import the necessary modules from the src directory. For example:
import { User } from 'mtl-shared-domain';
import { Report } from 'mtl-shared-domain';