Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gocs/microservice_item
https://github.com/gocs/microservice_item
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/gocs/microservice_item
- Owner: gocs
- License: mit
- Created: 2019-06-20T13:41:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-20T14:12:20.000Z (over 5 years ago)
- Last Synced: 2023-03-09T22:56:23.647Z (almost 2 years ago)
- Language: Go
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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