Small application that spins up a gRPC server to play around with tonic.
- Start the server with
cargo run
. - Install an
grpc
application for commandline (on mac e.g.brew install grpc
). - Ask for a movie:
grpc_cli call localhost:50051 moviestore.Moviestore.GetMovie "id: '73'"
.
The output should look as follows:
connecting to localhost:50051
Received initial metadata from server:
date : ...
id: "73"
title: "Lord of the Rings"
director: "Peter Jackson"
year: 2000
Rpc succeeded with OK status