Skip to content

athenian-programming/grpc-helloworld

Repository files navigation

gRPC HelloWorld Example

Uses: https://github.com/grpc/grpc-kotlin

Java and Kotlin Setup

Generate the stubs with: ./gradlew generateProto

Build the shell scripts with:

./gradlew -b build-applications.gradle installDist

Which builds:

  • ./build/install/grpc-helloworld/bin/java-client
  • ./build/install/grpc-helloworld/bin/java-server
  • ./build/install/grpc-helloworld/bin/kotlin-client
  • ./build/install/grpc-helloworld/bin/kotlin-server

Build the uberjars with:

./gradlew  java_server java_client kotlin_server kotlin_client

Which builds:

  • ./build/libs/java-server.jar
  • ./build/libs/java-client.jar
  • ./build/libs/kotlin-server.jar
  • ./build/libs/kotlin-client.jar

Python Setup

Generate the stubs with: make python-stubs