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
npm install
Copy .env.template
to .env
. Eventually change default preferences.
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 build -t ghcr.io/derogab/coingraph-daemon .
docker run -d \
-p 8080:8080 \
-p 8081:8081 \
-v /path/to/host/data:/usr/src/app/data \
ghcr.io/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 \
ghcr.io/derogab/coingraph-daemon \
--db db.json \
--crypto bitcoin,ethereum \
--timeout 180 \
--api-port 8080 \
--io-port 8081