Simple extendable, with logging, business logic, metrics, transport and everything separated (decorator pattern) microservice for fetching price for crypto (BTC, ETH, etc...)
sudo apt install -y protobuf-compiler
brew install protobuff
go get -u google.golang.org/protobuf/cmd/protoc-gen-go go install google.golang.org/protobuf/cmd/protoc-gen-go
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
NOTE: You should add the protoc-gen-go-grpc
to your PATH
PATH="${PATH}:${HOME}/go/bin"
make run
docker build -t cryptfetcher .
docker run -p 3000:3000 cryptfetcher