This repository contains a simple microservice in Go which accesses the api.hitbtc.com API server to obtain prices from various cryptocurrencies. This repository also contains instructions for deploying this microservice in a local Kubernetes cluster using the Kind utility.
To build this microservice, the following tools must be installed in your development environment.
- Go 1.16
- GNU make
- Docker
- Kind, https://kind.sigs.k8s.io/ , for local Kubernetes testing
- kubectl, for interacting with Kubernetes cluster
To obtain golint and staticcheck:
make get-gotools
To build the microservice locally:
make build
To build the Docker image, named craigcryptoapp:main containing the microservice:
make image
After building the Docker image
cd ./k8s
and read these instructions to run on Kubernetes
After deploying in Kubernetes, run the following to run tests:
make test