GithubHelp home page GithubHelp logo

jszumski / ios-network-programming-ch2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 160 KB

A PHP web service and corresponding iOS app that demonstrate the remote façade pattern and service versioning.

PHP 38.64% Objective-C 61.36%

ios-network-programming-ch2's Introduction

Professional iOS Network Programming

Chapter 2: Service Architecture

The example code from Chapter 2 of my book, Professional iOS Network Programming. Further discussion is also available on the Wiley P2P forum.

  • Facade PHP is a web service that serves stock ticker and weather data to clients. Each endpoint is built with two completely independent data sources that are converted to a common output format. Thus, the backend system can be completely replaced and the service output will remain unchanged. Each endpoint also has a second version that adds and changes the type of some fields, demonstrating how multiple app versions can be deployed after service enhancements are made.

  • Facade Tester is a corresponding iOS app that consumes a service locator to discover the proper Facade PHP endpoints to use and then displays API results in a table view. A segmented control allows the app to change which service version it consumes.

Once the PHP services are running, be sure to update the service locator URL in FTAppDelegate loadServiceLocator.

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.