George Barnett a1760349d5 Update to protobuf 1.27.0 (#1973) há 1 ano atrás
..
Client f77ea8088c Move v1 examples to v1 subdirectory (#1963) há 1 ano atrás
Model a1760349d5 Update to protobuf 1.27.0 (#1973) há 1 ano atrás
Server f77ea8088c Move v1 examples to v1 subdirectory (#1963) há 1 ano atrás
README.md f77ea8088c Move v1 examples to v1 subdirectory (#1963) há 1 ano atrás
route_guide_db.json f77ea8088c Move v1 examples to v1 subdirectory (#1963) há 1 ano atrás

README.md

Route Guide - A sample gRPC Application

This directory contains the source and generated code for the gRPC "Route Guide" example.

The tutorial relating to this example can be found in grpc-swift/docs/basic-tutorial.md.

Running

To start the server, from the root of this package run:

$ swift run RouteGuideServer

From another terminal, run the client:

$ swift run RouteGuideClient

Regenerating client and server code

For simplicity, a shell script (grpc-swift/Protos/generate.sh) is provided to generate client and server code:

$ Protos/generate.sh