An open API service indexing awesome lists of open source software.

https://github.com/anthdm/golangmicro

A microservice written in Golang with gRPC and JSON transport
https://github.com/anthdm/golangmicro

Last synced: about 1 year ago
JSON representation

A microservice written in Golang with gRPC and JSON transport

Awesome Lists containing this project

README

          

# A microservice example written in Golang

# 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
```