Skip to content

Commit

Permalink
Various updates, corrected include path to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptTofu committed Mar 21, 2017
1 parent 7980281 commit b9d0e3a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ 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/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
Expand Down Expand Up @@ -89,7 +89,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
```
Expand Down Expand Up @@ -127,6 +127,9 @@ Make sure that your `$GOPATH/bin` is in your `$PATH`.
```

It will generate a reverse proxy `path/to/your_service.pb.gw.go`.

Note: After generating the code for each of the stubs, in order to build the code, you will want to run ```go get .``` from the directory containing the stubs.

6. Write an entrypoint

Now you need to write an entrypoint of the proxy server.
Expand Down

0 comments on commit b9d0e3a

Please sign in to comment.