GithubHelp home page GithubHelp logo

fizzbuds / ddd-toolkit Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 1.29 MB

Home Page: https://fizzbuds.github.io/ddd-toolkit/

License: Apache License 2.0

JavaScript 0.74% TypeScript 99.11% Shell 0.16%
clean-architecture clean-code ddd ddd-architecture ddd-patterns cqrs cqs event-driven

ddd-toolkit's Introduction

ddd-toolkit

GitHub Actions Workflow Status Codecov NPM Version

Installation

pnpm add @fizzbuds/ddd-toolkit mongodb@5

Usage

An example of use with Nest can be found on fizzbuds/nest-ddd-toolkit repo.

ddd-toolkit's People

Contributors

gtoselli avatar lucagiove avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

ddd-toolkit's Issues

Event-bus next iteration

  • support for multiple events to be published?
  • constructor options to specify behavior async / parallel handler execution?
  • constructor options to specify behavior in case of exception?

0.1.0 Repo API

interface IAggregateRepo<A> {
    getById: (id: string) => Promise<WithVersion<A> | null>;
    save: (aggregate: A) => Promise<void>;
    getByIdOrThrow: (id: string) => Promise<WithVersion<A>>;
}

Better error logging for repohook fail

If there is a failure for a unique index not related to id field, error and message is masqueraded

Solution
we might check the filed of the unique index violation

Codecov not working anymore after upgrade to v4

==> Uploader SHASUM verified (e3ea28a069fe174eb99ac2ffb523bfb55d5d29a7cfd93ef48cde12e9b552b492  codecov)
==> Running version v0.4.9
==> Running git config --global --add safe.directory /home/runner/work/ddd-toolkit/ddd-toolkit
/usr/bin/git config --global --add safe.directory /home/runner/work/ddd-toolkit/ddd-toolkit
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit --git-service github
info - 20[24](https://github.com/fizzbuds/ddd-toolkit/actions/runs/8460140466/job/23177777444#step:9:25)-03-27 23:46:47,923 -- ci service found: github-actions
warning - 2024-03-27 23:46:47,931 -- No config file could be found. Ignoring config.
info - 2024-03-27 23:46:48,005 -- Process Commit creating complete
error - 2024-03-27 23:46:48,005 -- Commit creating failed: {"detail":"You do not have permission to perform this action."}
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-report'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-report --git-service github
info - 2024-03-27 23:46:48,706 -- ci service found: github-actions
warning - 2024-03-27 23:46:48,713 -- No config file could be found. Ignoring config.
info - 2024-03-27 23:46:48,813 -- Process Report creating complete
error - 2024-03-27 23:46:48,813 -- Report creating failed: {"detail":"You do not have permission to perform this action."}
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov do-upload'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov do-upload --git-service github
info - 2024-03-27 23:46:49,520 -- ci service found: github-actions
warning - 2024-03-27 23:46:49,528 -- No config file could be found. Ignoring config.
warning - 2024-03-27 23:46:49,529 -- xcrun is not installed or can't be found.
warning - 2024-03-27 23:46:49,812 -- No gcov data found.
warning - 2024-03-27 23:46:49,812 -- coverage.py is not installed or can't be found.
info - 2024-03-27 23:46:49,824 -- Found 3 coverage files to upload
info - 2024-03-27 23:46:49,8[25](https://github.com/fizzbuds/ddd-toolkit/actions/runs/8460140466/job/23177777444#step:9:26) -- > /home/runner/work/ddd-toolkit/ddd-toolkit/packages/ddd-tookit/coverage/clover.xml
info - 2024-03-27 23:46:49,825 -- > /home/runner/work/ddd-toolkit/ddd-toolkit/packages/ddd-tookit/coverage/lcov.info
info - 2024-03-[27](https://github.com/fizzbuds/ddd-toolkit/actions/runs/8460140466/job/23177777444#step:9:28) 23:46:49,825 -- > /home/runner/work/ddd-toolkit/ddd-toolkit/packages/ddd-tookit/coverage/coverage-final.json
info - 2024-03-27 23:46:49,898 -- Process Upload complete
error - 2024-03-27 23:46:49,899 -- Upload failed: {"detail":"You do not have permission to perform this action."}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.