This is really simple battle simulator.
For documentation we are using Swagger. Documentation can be found on http://localhost:3003/v1/api/
-
For logging and metrics we are using Elasticsearch-kibana-apm stack
-
You can find dashboard on link http://localhost:3003/
-
Then click on APM icon
-
Username is: elastic
-
Password is: elastic
-
When changing password or username you need to change it in few places
-
first is docker-compose file (elasticsearch service)
-
second is kibana.yml file
-
third is apm-server.yml file
-
Clone this project
-
Set the environment variables:
open .env file and change environment variables (if needed)
# build
docker-compose build
# start
docker-compose up
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov