Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gocs/microservice_item


https://github.com/gocs/microservice_item

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# microservice_item
![https://ewanvalentine.io/microservices-in-golang-part-1/](https://img.shields.io/badge/tutorial-https%3A%2F%2Fewanvalentine.io%2Fmicroservices--in--golang--part--1%2F-brightgreen.svg)

# install

1. install protobuf
```
GIT_TAG="v1.2.0" # change as needed
go get -d -u github.com/golang/protobuf/protoc-gen-go
git -C "$(go env GOPATH)"/src/github.com/golang/protobuf checkout $GIT_TAG
go install github.com/golang/protobuf/protoc-gen-go
```

2. install other
```
go get -u github.com/satori/go.uuid
go get -u google.golang.org/grpc
go get github.com/microservice_item
```

3. run
```
protoc -I. --go_out=plugins=grpc:. proto/item.proto
go run main.go
```

note:
git convert crlf to lf, don't know why
then protobuf convert lf to crlf again

# LICENSE

mit