This repo shows a simple example using freestyle-rpc, based on the Route Guide Demo (using Scala annotations for service definitions), from this example in grpc-java.
Run server (interpreted to cats.effect.IO
in this case):
sbt runServer
Run client interpreting to cats.effect.IO
:
sbt runClientIO
Run client interpreting to monix.eval.Task
:
sbt runClientTask
sbt demo-routeguide/idlGen
The previous command will overwrite this proto file.
(It will also generate this Avro file which will contain the messages but no RPC services since ours are annotated with Protobuf
.)
Freestyle is designed and developed by 47 Degrees
Copyright (C) 2017 47 Degrees. http://47deg.com