Skip to content
A Golang implementation of the NodeJS Dash Rates API created by Kodaxx
HTML Go Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps
vendor
Dockerfile
LICENSE
README.md
apidoc.html
main.go

README.md

Dash Rates API

A Golang implementation of the NodeJS Dash Rates API created by Kodaxx.

The CoinText COINTEXT_API_KEY environment variable must be set for the /invoice endpoint to work.

There is no requirement to run Redis.

API documentation can be viewed by visiting the root url.

Running

Set the following optional environment variables as required:

export COINTEXT_API_KEY="..."
export DISCORD_WEBHOOK_URL="https://discordapp.com/api/webhooks/..."
export HOST="https://your-domain.com"

Run the dockerhub image:

docker run \
  -d \
  -p 3000:3000 \
  -e COINTEXT_API_KEY="$COINTEXT_API_KEY" \
  -e DISCORD_WEBHOOK_URL="$DISCORD_WEBHOOK_URL" \
  -e HOST="$HOST" \
  --name dash-rates-api \
  ewalletdev/dash-rates-api:v1

Building

To build the docker container from source as opposed to using the dockerhub image run the following commands:

git clone https://github.com/ewalletdev/dash-rates-api.git
cd dash-rates-api
docker build -t ewalletdev/dash-rates-api:v1 .
You can’t perform that action at this time.