This is an application that demonstrates how to use Nest.js, Event Store and Mongo to create a RESTful API microservice.
The following tools must be installed on your computer:
- Docker
- Docker-Compose
$ npm install
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
$ chmod +x cleanup-dev-env.sh
$ ./cleanup-dev-env.sh
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov