Skip to content

jresoort/grpc-workshop

 
 

Repository files navigation

gRPC workshop

Some quick guidelines

  • src/main/proto contains the .proto files
  • Run ./gradlew generateProto to generate client, server and message classes, run this command after you
  • Each package below nl.toefel contains an example. For example nl.toefel.chatroom
  • Runnable classes end with Main.
  • The server stubs are implemented with classnames ending witn 'Controller'
  • Run ./gradlew idea or ./gradlew eclipse to configure your IDE to detect the generated code directories.

The react frontend-application is located in the root directory front-end

Running main classes on the command line

# 1 create a fat jar
./gradlew fatJar 

# 2 run the server variant in one terminal 
java -cp build/libs/grpc-chat-1.0-SNAPSHOT-all.jar nl.toefel.chatroom.unsecure.UnsecureChatroomClientMain

# 3 run the client variant in another terminal
java -cp build/libs/grpc-chat-1.0-SNAPSHOT-all.jar nl.toefel.chatroom.unsecure.UnsecureChatroomClientMain

#Excercises

About

gRPC workshop

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 75.4%
  • JavaScript 17.5%
  • Shell 3.1%
  • HTML 2.5%
  • CSS 1.5%