Statistics calculation service
- Ensure, all code for release in
master
- Run
yarn release
to bump version and create git-tag - Run
git push --follow-tags
- CircleCI will build release and deliver it to production
This service has an MIT license, so you can use it for you own needs.
- Run
docker build
for creating docker-image - Run docker-image: by
docker run
,docker-compose
,k8s
or what ever
Container accept the following env-variables:
- Database (PostgreSQL) connection params:
DB_HOST
,DB_PORT
,DB_USER
,DB_PASSWORD
,DB_NAME
- Queue-store (Redis) connection params:
REDIS_HOST
,REDIS_PORT
,REDIS_USER
,REDIS_PASSWORD
- URL for other Chekmoney-services:
MR_BUTCHER_URL
— for now, coupled with gateway — https://github.com/checkmoney/gateway, just add/mr-butcher
postfixMR_SOLOMONS_URL
— https://github.com/checkmoney/mr-solomonsDET_BELL_URL
— for now, coupled with gateway — https://github.com/checkmoney/gateway, just add/det-bell
postfix
Before starting the application, you must initialize tables for application. Run inside the container next commands:
yarn run evolutions -i
— create tables for database evolutionsyarn run evolutions
— apply database evolutions
Now, application listen 3000
port in container, you can use it.
- Start PostgreSQL
- Start Redis
- Start required Checkmoney-services (mr-butcher, mr-solomons, det-bell)
- Copy file
.env.dist
to.env
- Pass PostgreSQL connection params, Redis connection params and Checkmoney urls to
.env
- Run application by
yarn dev
Now, you can find docs and playground at localhost:3000/docs.