Skip to content

keyau/consumer

Repository files navigation

Description

Api Consumer is a sample of management credit account.

This api is based on CQRS and event sourcing architecture with Nest framework and Eventstore + MongoDB databases.

keyau

Installation

# eventstore + mongodb + mongodb express
$ docker-compose up
# persistent subscription to eventstore 
$ ./scripts/init-subscription.sh

# api
$ npm install

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

Urls

Swagger Api : http://localhost:3000/api/#/

Eventstore : http://localhost:2113/web/index.html#/ (login: admin / password : changeit)

MongoDb : http://localhost:8081/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •