Skip to content

wonderlic/docker-crypto-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wonderlic/crypto-api

Links

Description

This docker image will start a node.js webserver with the following routes:

GET /heartbeat - can be used as a health check with a load balancer (i.e. AWS ALB) to verify the service is still up and running. GET /current - returns a JSON document with the current BTC, BCH, ETH, and LTC prices from Coinbase GET /current/BTC - returns a JSON document with the current BTC prices from Coinbase GET /current/BCH - returns a JSON document with the current BCH prices from Coinbase GET /current/ETH - returns a JSON document with the current ETH prices from Coinbase GET /current/LTC - returns a JSON document with the current LTC prices from Coinbase

Usage

docker run \
  -e PORT=... \
  wonderlic/crypto-api

If not set:

  • PORT defaults to 8080

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors