diff options
author | Stanley Cheung <stanleycheung@google.com> | 2015-08-27 14:38:38 -0700 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2015-08-27 14:38:38 -0700 |
commit | 0a268216c2c8e112351b7ed038da04bf50b9eb5a (patch) | |
tree | ab93176dac0836e46df5f2b6f54c5a4fba66c823 /examples/objective-c/route_guide/README.md | |
parent | 20fa6693f3836bf1418176ec78b26feaf51a369d (diff) |
replace all grpc-common occurances with examples
Diffstat (limited to 'examples/objective-c/route_guide/README.md')
-rw-r--r-- | examples/objective-c/route_guide/README.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/objective-c/route_guide/README.md b/examples/objective-c/route_guide/README.md index bbbd9e020d..dd20a07995 100644 --- a/examples/objective-c/route_guide/README.md +++ b/examples/objective-c/route_guide/README.md @@ -43,15 +43,15 @@ code is limited by the dynamic nature of the language. <a name="setup"></a> ## Example code and setup -The example code for our tutorial is in [grpc/grpc-common/objective-c/route_guide](https://github.com/grpc/grpc-common/tree/master/objective-c/route_guide). -To download the example, clone the `grpc-common` repository by running the following command: +The example code for our tutorial is in [examples/objective-c/route_guide](examples/objective-c/route_guide). +To download the example, clone this repository by running the following command: ```shell -$ git clone https://github.com/grpc/grpc-common.git +$ git clone https://github.com/grpc/grpc.git ``` -Then change your current directory to `grpc-common/objective-c/route_guide`: +Then change your current directory to `examples/objective-c/route_guide`: ```shell -$ cd grpc-common/objective-c/route_guide +$ cd examples/objective-c/route_guide ``` Our example is a simple route mapping application that lets clients get information about features @@ -97,7 +97,7 @@ a client library from it, and how to create an app that uses that library. First let's look at how the service we're using is defined. A gRPC *service* and its method *request* and *response* types using [protocol buffers](https://developers.google.com/protocol-buffers/docs/overview). -You can see the complete .proto file for our example in [`grpc-common/protos/route_guide.proto`](https://github.com/grpc/grpc-common/blob/master/protos/route_guide.proto). +You can see the complete .proto file for our example in [`examples/protos/route_guide.proto`](examples/protos/route_guide.proto). To define a service, you specify a named `service` in your .proto file: @@ -177,9 +177,9 @@ option objc_class_prefix = "RTG"; Next we need to generate the gRPC client interfaces from our .proto service definition. We do this using the protocol buffer compiler (`protoc`) with a special gRPC Objective-C plugin. -For simplicity, we've provided a [Podspec file](https://github.com/grpc/grpc-common/blob/master/objective-c/route_guide/RouteGuide.podspec) +For simplicity, we've provided a [Podspec file](examples/objective-c/route_guide/RouteGuide.podspec) that runs `protoc` for you with the appropriate plugin, input, and output, and describes how to -compile the generated files. You just need to run in this directory (`grpc-common/objective-c/route_guide`): +compile the generated files. You just need to run in this directory (`examples/objective-c/route_guide`): ```shell $ pod install @@ -211,7 +211,7 @@ definition; just replace the name (matching the file name), version, and other m ## Creating the client In this section, we'll look at creating an Objective-C client for our `RouteGuide` service. You can -see our complete example client code in [grpc-common/objective-c/route_guide/ViewControllers.m](https://github.com/grpc/grpc-common/blob/master/objective-c/route_guide/ViewControllers.m). +see our complete example client code in [examples/objective-c/route_guide/ViewControllers.m](examples/objective-c/route_guide/ViewControllers.m). (Note: In your apps, for maintainability and readability reasons, you shouldn't put all of your view controllers in a single file; it's done here only to simplify the learning process). |