tr-ant-exr-trader-net

/src - sources, type script + index.ts - entry point of application + Dockerfile - docker image builder + .envs - define you config variables here (ignored in git) + typings - typescript definition files

Usage no npm install needed!

<script type="module">
  import trAntExrTraderNet from 'https://cdn.skypack.dev/tr-ant-exr-trader-net';
</script>

README

Trader micro service

Project structure

  • /src - sources, type script

    • index.ts - entry point of application
  • Dockerfile - docker image builder

  • .envs - define you config variables here (ignored in git)

  • typings - typescript definition files

Prerequisites

  • nodejs
  • npm
  • typescript

Install

git clone git@bitbucket.org:tr-hive/tr-ant-exr-trader-net.git
npm install
  • To rebuild tsc or npm run-script build
  • To watch and rebuild tsc -w

Rebuild also executed before each npm start

Start

  • Define enviroment variables, in order of priority env, .npmrc, package.json
  • Test start npm start

Docker

  • Build container docker build -t baio/tr-ant-exr-trader-net .
  • Start container docker run baio/tr-ant-exr-trader-net

Also build npm run-script docker or npm run-script docker-clean