Coinminer is miner client for coingame
yarn --version
(it should be equal or greater than0.24.6
)node -v
(it should be equal or greater thanv10.0.0
)
yarn install
yarn start
For tests you should run
yarn install
yarn test
Environment variable | Description |
---|---|
SERVER_HOST | Server host - example 'http://localhost' |
SERVER_PORT | Server Port - example '8080' |
MINER_NAME | Miner name visible in score - example 'Peter' |
Build docker container
docker build -t coinminer .
Run container
docker run coinminer
When coingame runs on localhost
docker run --network="host" coinminer