The Java gRPC implementation. HTTP/2 based RPC
Go to file
Xiao Hang 78caf51297 Update Android Helloworld example 2015-02-25 19:27:06 -08:00
android Update Android Helloworld example 2015-02-25 19:27:06 -08:00
src/main/java/ex/grpc Removes the unused protos, updates the README to reflect the protos in use 2015-02-19 07:52:13 -08:00
README.md Update README.md 2015-02-25 14:29:11 -08:00
pom.xml Moves java overview project to a subdirectory 2015-02-06 13:09:20 -08:00
run_greeter_client.sh Complete the change s/Greetings/Greeter 2015-02-18 17:43:41 -08:00
run_greeter_server.sh Complete the change s/Greetings/Greeter 2015-02-18 17:43:41 -08:00

README.md

gRPC in 3 minutes (Java)

BACKGROUND

For this sample, we've already generated the server and client stubs from helloworld.proto.

PREREQUISITES

INSTALL

1 Clone the gRPC Java git repo

$ cd <path/to/your/working_dir>
$ git clone https://github.com/grpc/grpc-java

2 Install gRPC Java, as described in How to Build

$ # from this dir
$ cd grpc-java
$ # follow the instructions in 'How to Build'

3 Clone this repo, if you've not already done so.

$ cd <path/to/your/working_dir>
$ git clone https://github.com/grpc/grpc-common
$ cd grpc-common/java  # switch to this directory

4 Build the samples

$ # from this directory
$ mvn package

TRY IT!

  • Run the server
$ # from this directory
$ ./run_greeter_server.sh &
  • Run the client
$ # from this directory
$ ./run_greeter_client.sh