1.0.1 • Published 1 year ago
ddd-basics v1.0.1
ddd-basics
THIS PAGE IS STILL UNDER CONSTRUCTION!!
Documentation
Visit the Documentation for detailed information about all parts of this repo
The general approach for this repo is to implement the documentation as ts-doc. That's why full documentation is always on the Documentation.
Usage
This library is currently divided into 3 modules:
- Basic - includes general classes like:
Entity
- an abstract class with an inbuilt identifierSerializable
- an abstract class for serializing private propertiesResult
- the result of a validation (e.g. when creating ValueObjects)
- Events - Domain Event Synchronization
- DomainEvent - an event to be sent from a handler to a subscription callback
- EventHandler - implements classic event handling (typesafe)
- EventCombiner - combines subscriptions to multiple EventHandlers
- ValueObjects - includes a variety of predefined ValueObjects with inbuilt validation for extendable purposes.
Installation
npm:
npm i --save ddd-basics
yarn:
yarn add ddd-basics
.
Dependencies
- uuid (v4)