naman223 / gomicroservice

Go base Microservice Using Grpc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Grpc (https://ewanvalentine.io/microservices-in-golang-part-1/, https://ewanvalentine.io/microservices-in-golang-part-2/)

  1. export GOPATH to this Clone Directory.

2. Depedency
go get -u google.golang.org/grpc
go get -u github.com/golang/protobuf/protoc-gen-go

3. Build
cd src/github.com/consignment-service/
make build
make run

4. Testing
cd consignment-cli
go run cli.go

5. Output
2018/07/12 15:13:36 Created: true
2018/07/12 15:13:36 description:"This is a test consignment" weight:550 containers: vessel_id:"vessel001"

6. Stop Service
docker ps
docker stop

About

Go base Microservice Using Grpc


Languages

Language:Go 93.7%Language:Makefile 6.3%