THIS PAGE IS STILL UNDER CONSTRUCTION!!
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.
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.
npm i --save ddd-basics
yarn add ddd-basics
.
- uuid (v4)