Skip to content

Small microservice which queries cryptocurrency prices from api.hitbtc.com

Notifications You must be signed in to change notification settings

rodrigc/cryptoserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptocurrency Microservice

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.

Development environment

Prerequisites

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

Preparing environment

To obtain golint and staticcheck:

make get-gotools

Building Microservice locally

To build the microservice locally:

make build

Building Docker image

To build the Docker image, named craigcryptoapp:main containing the microservice:

make image

Run in Kubernetes

After building the Docker image

cd ./k8s

and read these instructions to run on Kubernetes

Running tests

After deploying in Kubernetes, run the following to run tests:

make test

About

Small microservice which queries cryptocurrency prices from api.hitbtc.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published