GithubHelp home page GithubHelp logo

ngaxavi / nest-cqrs Goto Github PK

View Code? Open in Web Editor NEW
113.0 2.0 13.0 737 KB

A Node.js CQRS and Event Source Microservice Example using Nest.js, Event Store and Mongo

TypeScript 93.00% JavaScript 4.70% Dockerfile 0.92% Shell 1.38%
nestjs microservice nodejs event-store mongodb ddd

nest-cqrs's Introduction

Description

This is an application that demonstrates how to use Nest.js, Event Store and Mongo to create a RESTful API microservice.

Prerequisite

The following tools must be installed on your computer:

  • Docker
  • Docker-Compose

Installation

$ npm install

Running the app in development

To handle different image of eventstore based on the architecture arm64 and x86_64 run the script run-dev-env.sh.

# start event-store and mongodb
$ chmod +x run-dev-env.sh
$ ./run-dev-sh

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Clean up Environment

$ chmod +x cleanup-dev-env.sh
$ ./cleanup-dev-env.sh

Test (Coming soon)

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

License

MIT licensed.

nest-cqrs's People

Contributors

dependabot[bot] avatar ngaxavi avatar renovate-bot avatar renovate[bot] avatar xnrobot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nest-cqrs's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Package lookup failures

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update commitlint monorepo to v19 (major) (@commitlint/cli, @commitlint/config-conventional)
  • chore(deps): update dependency @types/supertest to v6
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-config-prettier to v9
  • chore(deps): update dependency eslint-plugin-prettier to v5
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency lint-staged to v15
  • chore(deps): update dependency supertest to v7
  • chore(deps): update typescript-eslint monorepo to v7 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency @eventstore/db-client to v6
  • fix(deps): update dependency uuid to v10
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Warning

Renovate failed to look up the following dependencies: Failed to look up github-tags package action/cache.

Files affected: .github/workflows/build-image.yaml


Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
docker-compose.yaml
dockerfile
Dockerfile
  • gcr.io/distroless/nodejs 18
github-actions
.github/workflows/build-image.yaml
  • action/cache v2
  • actions/checkout v3
.github/workflows/release.yaml
  • actions/checkout v3
  • actions/setup-node v3
npm
package.json
  • @eventstore/db-client ^5.0.1
  • @meanie/mongoose-to-json 2.6.0
  • @nestjs/axios 2.0.0
  • @nestjs/common ^9.3.10
  • @nestjs/core 9.3.10
  • @nestjs/cqrs 9.0.3
  • @nestjs/platform-express 9.3.10
  • class-transformer 0.5.1
  • class-validator 0.14.0
  • cli-color 2.0.3
  • fast-xml-parser 4.1.3
  • geteventstore-promise 4.0.1
  • mongoose 7.0.2
  • reflect-metadata 0.1.13
  • rimraf 4.4.0
  • rxjs 7.8.0
  • uuid 9.0.0
  • @commitlint/cli 17.4.4
  • @commitlint/config-conventional 17.4.4
  • @nestjs/cli 9.3.0
  • @nestjs/schematics 9.0.4
  • @nestjs/testing 9.3.10
  • @semantic-release/changelog 6.0.2
  • @semantic-release/git 10.0.1
  • @types/cli-color 2.0.2
  • @types/express 4.17.17
  • @types/jest 29.5.0
  • @types/node 18.15.3
  • @types/supertest 2.0.12
  • @typescript-eslint/eslint-plugin 5.55.0
  • @typescript-eslint/parser 5.55.0
  • eslint 8.36.0
  • eslint-config-prettier 8.7.0
  • eslint-plugin-prettier 4.2.1
  • husky 8.0.3
  • jest 29.5.0
  • lint-staged 13.2.0
  • prettier 2.8.4
  • semantic-release 20.1.1
  • supertest 6.3.3
  • ts-jest 29.0.5
  • ts-loader 9.4.2
  • ts-node 10.9.1
  • tsconfig-paths 4.1.2
  • typescript 4.9.5
  • yarn >=1.9.2 <2.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Eventhandler Write to Read model

Hi,

is there any example how events execute something? NestJS documentation and every example never use the eventhandlers to write to the read model...

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.