Pushes the optional code-gen section to the bottom

This commit is contained in:
Tim Emiola 2015-02-20 07:48:04 -08:00
Родитель 6ccac2731e
Коммит 5735acb45c
1 изменённых файлов: 15 добавлений и 15 удалений

Просмотреть файл

@ -21,8 +21,21 @@ $ go install -u github.com/grpc-common/go/greeter_client
$ go install -u github.com/grpc-common/go/greeter_server $ go install -u github.com/grpc-common/go/greeter_server
``` ```
OPTIONAL - Rebuild the generated code TRY IT!
------------------------------------- -------
- Run the server
```sh
$ greeter_server &
```
- Run the client
```sh
$ greeter_client
```
OPTIONAL - Rebuilding the generated code
----------------------------------------
1 First [install protoc](https://github.com/google/protobuf/blob/master/INSTALL.txt) 1 First [install protoc](https://github.com/google/protobuf/blob/master/INSTALL.txt)
- For now, this needs to be installed from source - For now, this needs to be installed from source
@ -36,16 +49,3 @@ $
$ # from ths dir; invoke protoc $ # from ths dir; invoke protoc
$ protoc -I ../protos ../protos/helloworld.proto --go_out=plugins=grpc:. $ protoc -I ../protos ../protos/helloworld.proto --go_out=plugins=grpc:.
``` ```
TRY IT!
-------
- Run the server
```sh
$ greeter_server &
```
- Run the client
```sh
$ greeter_client
```