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 20, 2017
1 parent 7980281 commit d1d0c47
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
```
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d1d0c47

Please sign in to comment.