This is a simple app that fetches BTC price in USD from Coindesk and converts to Naira - while performing basic arithmetics.
-
Docker:
$ docker pull adelowo/queryapp $ docker run -p 9080:8080 adelowo/queryapp
Visit
http://localhost:9080/graphiql
-
Building from source:
$ go get github.com/adelowo/queryapp $ cd queryapp $ go build -o app ./cmd $ ./app
By default, the server runs on
8080
. You can add your preferred port asPORT
environmental value such asexport PORT=2000
and the server will be available in port 2000
This repo is automatically deployed as a Docker Image via Github Actions. Github Action also acts as a CI tool. Please take a look at https://github.com/adelowo/queryapp/actions
The app is deployed at https://btc-exchangerate-app.herokuapp.com/graphiql