Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

checkmoney/dr-khomyuk

Repository files navigation

Dr. Khomyuk

Statistics calculation service

Who?

Production

Release to Checkmoney infrastructure

  1. Ensure, all code for release in master
  2. Run yarn release to bump version and create git-tag
  3. Run git push --follow-tags
  4. CircleCI will build release and deliver it to production

Release to you own infrastructure

This service has an MIT license, so you can use it for you own needs.

  1. Run docker build for creating docker-image
  2. Run docker-image: by docker run, docker-compose, k8s or what ever

Container accept the following env-variables:

Before starting the application, you must initialize tables for application. Run inside the container next commands:

  • yarn run evolutions -i — create tables for database evolutions
  • yarn run evolutions — apply database evolutions

Now, application listen 3000 port in container, you can use it.

Development

  1. Start PostgreSQL
  2. Start Redis
  3. Start required Checkmoney-services (mr-butcher, mr-solomons, det-bell)
  4. Copy file .env.dist to .env
  5. Pass PostgreSQL connection params, Redis connection params and Checkmoney urls to .env
  6. Run application by yarn dev

Now, you can find docs and playground at localhost:3000/docs.