tr-ant-exr-trader-net
v1.1.1
Published
## Project structure
Downloads
2
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 [email protected]:tr-hive/tr-ant-exr-trader-net.git
npm install
- To rebuild
tsc
ornpm 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