From d1d0c47d3505176bccb3ff6ee28a7f0eb866accd Mon Sep 17 00:00:00 2001 From: "Patrick M. Galbraith" Date: Sun, 19 Mar 2017 12:10:36 -0400 Subject: [PATCH] Various updates, corrected include path to README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 69e3d39411e..adc00e7856d 100644 --- a/README.md +++ b/README.md @@ -36,12 +36,14 @@ make check sudo make install ``` -Then, `go get -u` as usual. +Then, `go get -u` as usual the following packages: ```sh +go get -u github.com/golang/protobuf/protoc-gen-go +go get -u google.golang.org/grpc go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger -go get -u github.com/golang/protobuf/protoc-gen-go +go get -u golang.org/x/net/context ``` ## Usage @@ -89,7 +91,7 @@ Make sure that your `$GOPATH/bin` is in your `$PATH`. ```sh protoc -I/usr/local/include -I. \ -I$GOPATH/src \ - -I$GOPATH/src/github.com/googleapis/googleapis/ \ + -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \ --go_out=,plugins=grpc:. \ path/to/your_service.proto ``` @@ -127,6 +129,7 @@ Make sure that your `$GOPATH/bin` is in your `$PATH`. ``` It will generate a reverse proxy `path/to/your_service.pb.gw.go`. + 6. Write an entrypoint Now you need to write an entrypoint of the proxy server.