GithubHelp home page GithubHelp logo

isabella232 / appengine-endpoints-helloendpoints-ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/appengine-endpoints-helloendpoints-ios

0.0 0.0 0.0 48 KB

A "hello world" iOS client for Google Cloud Endpoints

Objective-C 100.00%

appengine-endpoints-helloendpoints-ios's Introduction

appengine-endpoints-helloworld-ios

This application is a HelloWorld iOS sample application that connects to a HelloWorld Google Cloud Endpoints backend sample.

It relies on a copy of the Google APIs Client Library for Objective-C.

This example also uses ARC. If your application uses ARC you must set the -fno-objc-arc for the files included in the client library; see the client library project ARC notes.

Products

Language

APIs

Setup Instructions

  1. Clone this git repo locally. git clone https//github.com/GoogleCloudPlatform/appengine-endpoints-helloendpoints-ios.git

  2. Clone a Hello Endpoints Backend sample locally and BUILD it. These instructions will assume the project was downloaded to ~/appengine-endpoints-helloendpoints-java-maven and mvn clean install was used to build.

  3. Pull down the Google Client Library Objective-C client library to a subdirectory. cd appengine-endpints-helloendpoints-ios/Hello\ Endpoints/ svn checkout http://google-api-objectivec-client.googlecode.com/svn/trunk/ google-api-objectivec-client-read-only

  4. Build the ServiceGenerator to generate an Objective-C client library. open google-api-objectivec-client-read-only/Source/Tools/ServiceGenerator/ServiceGenerator.xcodeproj Hit the play button to build the project.

  5. Generate your custom service files to work with the Google Client Library.

    1. Find the ServiceGenerator binary by opening Project Navigator > Products > ServiceGeneator then copying the location from the inspector on the right side of Xcode. It will typically be something like this: /Users/<your_user_id>/Library/Developer/Xcode/DerivedData/ServiceGenerator-<random-guid>/Build/Products/Debug/ServiceGenerator
    2. Run the ServiceGenerator on your discovery document. /Users/<your_user_id>/Library/Developer/Xcode/DerivedData/ServiceGenerator-<random-guid>/Build/Products/Debug/ServiceGenerator \ ~/appengine-endpoints-helloendpoints-java-maven/target/helloendpoints-1.0-SNAPSHOT/WEB-INF/helloworld-v1-rpc.discovery \ --outputDir ./API
  6. Open the Project in Xcode open Hello\ Endpoints/Hello\ Endpoints.xcodeproj

  7. Build project by hitting the play button in the top left-hand corner.

  8. Modify kMyClientId and kMyClientSecret in ViewController.m to include the web client ID and client secret you registered in the APIs Console.

  9. Modify GTLServiceHelloworld.m (line 44) to point to the location where you are hosting a Helloworld backend.

  10. Run the application.

appengine-endpoints-helloendpoints-ios's People

Contributors

danholevoet avatar paulrashidi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.