- Install deps and compile
$ mix do deps.get, compile
- Run the server
$ mix run --no-halt
- Run the client
$ mix run priv/client.exs
- Modify the proto
priv/route_guide.proto
- Install
protoc
here - Install
protoc-gen-elixir
mix escript.install hex protobuf
- Generate the code:
$ protoc -I priv --elixir_out=plugins=grpc:./lib/ priv/route_guide.proto
Refer to protobuf-elixir for more information.
$ TLS=true mix run --no-halt
$ TLS=true mix run priv/client.exs
- How to change log level? Check out
config/config.exs
, default to warn - Use local grpc-elixir? Uncomment
{:grpc, path: "../../"}
inmix.exs
- Why is output format of
Feature
&Point
different from normal map? Check outlib/inspect.ex