Giter Site home page Giter Site logo

iphone-rails-tutorial's Introduction

RailsConf 2010 Tutorial

This repo contains a workbook and source code for the 3-hour Mobile App Development with iPhone/iPad and Rails tutorial I taught at RailsConf 2010.

The overall goal is to build a full-featured iPhone app (screenshots) that talks to a Rails app (try it!) using RESTful resources. Along the way we explore several libraries and delve into topics such as authentication, nested resources, and asynchronous communication.

Workbook

To start working through the workbook, open the workbook/html/all.html file in your favorite browser. Each section starts with an objective and includes steps to guide you to the solution.

Source Code

The code directory contains incremental versions of the iPhone app that correlate roughly to each section of the workbook. Check the README in each directory for more details.

The final iPhone and Rails apps are in the iphone_app and rails_app directories, respectively.

Install Rails 3 (beta)

You'll need the Rails 3 beta installed to run the sample Rails app:

$ gem install rails --pre

Install the iPhone SDK

You'll need the iPhone SDK to run the sample iPhone app:

  1. Make sure you've upgraded your Intel-based Mac laptop to run Snow Leopard (version 10.6.3), the latest Mac OS X release.

  2. You'll need to be an Apple Developer Connection (ADC) member in order to download the latest version of the iPhone SDK. If you're not already a member, you can sign up for an ADC account. ADC membership is free.

  3. Once you have an ADC account, download iPhone SDK 3.2 and install it. You may be tempted to download iPhone SDK 4 beta. Note however that the sample project was built with iPhone SDK 3.2 and the 4.0 version is under NDA at this time, so we won't be using it in this tutorial.

  4. Xcode 3.2.2 is included in the full download of the iPhone SDK iPhone SDK 3.2. Verify that you're running Xcode version 3.2.2 by launching Xcode and using the Xcode -> About Xcode menu item. (You'll find Xcode under the /Developer/Applications directory.)

If you want to run your apps on your iPhone or iPod Touch device, you'll need to join Apple's iPhone Developer program. The program costs $99/year for individuals.

New To iPhone Programming?

The workbook assumes you have a basic working knowledge of Objective-C and a general understanding of iPhone table view programming. Here are some recommended resources to help you get started:

iphone-rails-tutorial's People

Contributors

clarkware avatar

Stargazers

 avatar

Watchers

 avatar  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.