Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.03 KB

File metadata and controls

60 lines (40 loc) · 1.03 KB

Description

CQRS + Event Sourcing using redis as a read database and mongo as a event source database. All developed on top of NestJS using typescript.

If your looking for an Api REST impl instead of GraphQL check this repository.

Installation

$ npm install

Configuration

$ cp .env.example .env

Edit the file with your config data.

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Where to start

You can use the user's commands and queries via API REST, check src/users/users.controller.ts, or via graphql, http://localhost:3000/graphql.

Reconstructing the view db

Just run

npm run reconstruct-view-db

Stay in touch