George Barnett b256884908 Replace usage of ClientConnection.init with builders 5 роки тому
..
Client b256884908 Replace usage of ClientConnection.init with builders 5 роки тому
Model 522e5d4259 Generate documentation from proto comments (#743) 5 роки тому
Server 0df475fe2e Add a RouteGuide example and tutorial (#598) 6 роки тому
README.md 0df475fe2e Add a RouteGuide example and tutorial (#598) 6 роки тому
route_guide_db.json 0df475fe2e Add a RouteGuide example and tutorial (#598) 6 роки тому

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

Once the server has started it will print out the port is listening on. This must be passed to the client.

$ swift run RouteGuideClient <PORT>

Regenerating client and server code

For simplicity, a Makefile is provided in the root of this package with a target to generate client and server code:

$ make generate-route-guide