George Barnett 91ab843c48 Regenerate 4 years ago
..
Client 621a0df8d8 Add missing calls to 'close()' in examples (#965) 5 years ago
Model 91ab843c48 Regenerate 4 years ago
Server d9e1a6e532 Codegen for server interceptors (#1030) 5 years ago
README.md 0df475fe2e Add a RouteGuide example and tutorial (#598) 6 years ago
route_guide_db.json 0df475fe2e Add a RouteGuide example and tutorial (#598) 6 years ago

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