https://github.com/arkerlabs/event-sourcing-nestjs-graphql-example
Sample project using Event Sourcing and CQRS with NestJS and GraphQL.
https://github.com/arkerlabs/event-sourcing-nestjs-graphql-example
Last synced: about 2 months ago
JSON representation
Sample project using Event Sourcing and CQRS with NestJS and GraphQL.
- Host: GitHub
- URL: https://github.com/arkerlabs/event-sourcing-nestjs-graphql-example
- Owner: ArkerLabs
- Created: 2020-03-15T18:36:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:38:27.000Z (over 2 years ago)
- Last Synced: 2025-04-12T10:06:33.910Z (about 2 months ago)
- Language: TypeScript
- Size: 2.92 MB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Description
CQRS + [Event Sourcing](https://github.com/ArkerLabs/event-sourcing-nestjs) 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](https://github.com/ArkerLabs/event-sourcing-nestjs-example).
## Installation
```bash
$ npm install
```## Configuration
```bash
$ cp .env.example .env
```Edit the file with your config data.
## Running the app
```bash
# development
$ npm run start# watch mode
$ npm run start:dev# production mode
$ npm run start:prod
```## Test
```bash
# 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
```bash
npm run reconstruct-view-db
```## Stay in touch
- Author - [Arker Labs](https://arkerlabs.com)