Skip to content

faparipik/battle-simulator

Repository files navigation

Battle Image

Battle Simulator

Description

This is really simple battle simulator.

Table of contents

Documentation

For documentation we are using Swagger. Documentation can be found on http://localhost:3003/v1/api/

Logs

  • 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

Setup

  • Clone this project

  • Set the environment variables:

open .env file and change environment variables (if needed)

# build
docker-compose build

# start
docker-compose up

Scripts

Installation

$ 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

About

Simple battle simulator created using nestjs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published