Sign inSign up

derogab/coingraph-daemon

By derogab

•Updated almost 2 years ago

Coingraph is a real-time data for cryptocurrencies.

Image
0

3.4K

derogab/coingraph-daemon repository overview

⁠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

Tag summary

Content type

Image

Digest

sha256:1d1488e9f…

Size

55.3 MB

Last updated

almost 2 years ago

docker pull derogab/coingraph-daemon