Skip to content

Microservice for fetching crypto price (Golang, Docker, gRPC, JSON)

Notifications You must be signed in to change notification settings

forzyz/crypt-fetcher

Repository files navigation

Simple extendable, with logging, business logic, metrics, transport and everything separated (decorator pattern) microservice for fetching price for crypto (BTC, ETH, etc...)

Installing protobuffer

Linux

sudo apt install -y protobuf-compiler  

MacOS

brew install protobuff

GRPC and Protobuffer package dependencies

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"

Running the service

make run

Dockerfile run commands

docker build -t cryptfetcher .      
docker run -p 3000:3000 cryptfetcher

About

Microservice for fetching crypto price (Golang, Docker, gRPC, JSON)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published