derogab/coingraph-daemon

By derogab

Updated 5 months ago

Coingraph is a real-time data for cryptocurrencies.

Image

2.0K

Coingraph Daemon

A daemon for coingraph who takes care of

  • collecting data from external sources
  • organizing the data in the local database
  • emitting historical and live data via socket
  • exposing an API

Dependencies

yarn

Configuration

Open .env and eventually change default preferences.

Usage

node app.js

Or with custom params

node app.js \
    --db db.json \
    --crypto bitcoin,ethereum \
    --timeout 180 \
    --api-port 8080 \
    --io-port 8081

Info: custom params overwrite default preferences in .env.

Docker

GitHub release (latest SemVer including pre-releases)Docker Image Size (tag)Docker Pulls

Build image from source

docker build -t derogab/coingraph-daemon .

Start container

docker run -d \
    -p 8080:8080 \
    -p 8081:8081 \
    -v /path/to/host/data:/usr/src/app/data \
    derogab/coingraph-daemon

Or with custom params

docker run -d \
    -p 8080:8080 \
    -p 8081:8081 \
    -v /path/to/host/data:/usr/src/app/data \
    derogab/coingraph-daemon \
    --db db.json \
    --crypto bitcoin,ethereum \
    --timeout 180 \
    --api-port 8080 \
    --io-port 8081

Docker Pull Command

docker pull derogab/coingraph-daemon