1.5.11 • Published 2 years ago

ddd-scaffold v1.5.11

Weekly downloads
-
License
private
Repository
github
Last release
2 years ago

RDDD Framwork

This project includes all the required interfaces and abstract classes to build a fully structured DDD project.

This is lacking of some features that will be added as the main project progresses.

It is needless to mention that everything is built-in is written in and for a typescript project.

Summary

  1. Core Elements
  2. Documentation
  3. Tools & Utilities
  4. Expected Errors Library

Installing

Using npm:

$ npm install ddd-scaffold 

Using yarn:

$ yarn add ddd-scaffold 

Core Elements

  • It includes an interface for building Entities
  • It includes an interface for building ValueObjects
  • It includes a full library for expected errors called ErrorOperations.

Documentation

The project includes a documentation at /docs/, open it at your favourite browser and read it to know where to start.

Tools & Utilities

  1. Guard This includes some tools to pre-validate arguments for the different factories you'll build across the Entities and ValueObjects.
  2. ObjectUtilies Is created to parse strings to object/primitives when using those at DTOs or similar.
  3. Enum Basically a tool with different tools to work with typescript enums

  4. Finally and not less important, a logger built with winston, for a basic integration for it. You should modify that file for bigger approaches or just write everything again with the desired elements in it.

Expected Errors Lib.

The project includes different methods that will help you to handle error that requires a message or a return. Expected error can be traduced to something like: "Missing Item"

You should firstly should read the documentation.

  • GResponse Built for GRPC responses.
  • AResponse Built for HTTP responses.
  • Result Built general proposed that just need a message.

OperationResult, is just for the abstract factory builder.

Notes

  • This project is not finished.
  • Examples will be added in the future, tho you should read more about DDD.
1.5.11

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.5.10

2 years ago

1.5.9

2 years ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.4.8

2 years ago

1.4.7

2 years ago

1.3.0

2 years ago

1.2.0

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.7

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago