This repository has been archived by the owner. It is now read-only.
freestyle-rpc sample demos
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
routeguide/src/main
.gitignore
.scalafmt.conf
.travis.yml
AUTHORS.md
CONTRIBUTING.md
LICENSE
README.md
build.sbt
version.sbt

README.md

⚠️ Note: this project is deprecated and has been integrated into the frees-rpc codebase.

Build Status License Join the chat at https://gitter.im/47deg/freestyle

freestyle-rpc-examples

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.

Running the Example

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

Generating the IDL files

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.)

Copyright

Freestyle is designed and developed by 47 Degrees

Copyright (C) 2017 47 Degrees. http://47deg.com