Track historic quotes for leading coins.
Install Postgres.
bundle
bundle exec rake db:create db:migrate
export CMC_TOKEN=...
export STEEM_MARKET_TOKEN=...
export RACK_ENV=development
export DATABASE_URL=postgres://localhost/steem_market_development
Run the scraper (ideally run this every hour).
bundle exec ruby lib/tasks/fetch-latest-coins.rb
Run the server. PORT env variable can be specified.
rackup config.ru
Open a console.
bundle exec rake console
Env variables:
CMC_TOKEN
STEEM_MARKET_TOKEN
RACK_ENV
DATABASE_URL
PORT
CHECKOUT_TIMEOUT
POOL_SIZE
create the database and migrate
docker run \
-it --rm \
-e DATABASE_URL=postgres://localhost/steem_market_development \
steemit/steem-market:latest \
bundle exec rake db:create db:migrate
run the service
docker run \
-itd \
--name steem-market \
--restart always \
-e CMC_TOKEN= \
-e STEEM_MARKET_TOKEN= \
-e RACK_ENV=production \
-e DATABASE_URL=postgres://localhost/steem_market_development \
-e PORT=9292 \
-p 9292:9292 \
steemit/steem-market:latest
Content type
Image
Digest
sha256:10f3c4d97…
Size
17.1 MB
Last updated
7 months ago
docker pull steemit/steem-market