Clone this repository and run gRCP server and client projects.
git clone https://github.com/muneebsa/grpc-examples.git
WORK_DIR: ~/Dev/grpc
It is assumed that you have cloned the repository in your favourite working dir {{WORK-DIR}}.
Open the below project folder into your favouite IDE.
{WORK_DIR}/grpc-examples/java/grpc-greeter-server
The below instructions are based on using the IntelliJ IDE. For other IDEs like Eclipse, you may need to adjust the steps/instructions accordingly.
The examples were tested with JDK 1.8. You may try higher version if you like.
Once the server run is successfull, you will see the below message in the console.
Open the below project folder into your favouite IDE.
{WORK_DIR}/grpc-examples/java/grpc-greeter-client
The below instructions are based on using the IntelliJ IDE. For other IDEs like Eclipse, you may need to adjust the steps/instructions accordingly.
Follow the instructions #2 through #5 as outlined in the Running gRPC Server - Java section.
Once the client run is successfull, you will see the below message in the console.