SVCC Drupal+iPhone
Upcoming SlideShare
Loading in...5
×
 

SVCC Drupal+iPhone

on

  • 2,310 views

Presentation on Drupal+iPhone given at Silicon Valley Code Camp 2009 by Eneko Alonso.

Presentation on Drupal+iPhone given at Silicon Valley Code Camp 2009 by Eneko Alonso.

Statistics

Views

Total Views
2,310
Views on SlideShare
2,302
Embed Views
8

Actions

Likes
0
Downloads
15
Comments
0

1 Embed 8

http://www.slideshare.net 8

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    SVCC Drupal+iPhone SVCC Drupal+iPhone Presentation Transcript

    • Drupal + iPhone = AWESOME
      Silicon Valley Code Camp
      October 2009
      Eneko Alonso
      ealonso@level-studios.com
    • Eneko Alonso
      I am a Software Engineer and UI Developer, currently working at Level Studios
      ealonso@level-studios.com
      www.level-studios.com
      www.enekoalonso.com
      Eneko Alonso
      ealonso@level-studios.com
    • DRUPAL
      Eneko Alonso
      ealonso@level-studios.com
    • Drupal: what is it?
      Content Management System
      Community (user management, roles, permissions)
      Base for great web applications
      Check out www.drupal.org
      Eneko Alonso
      ealonso@level-studios.com
    • iPhone
      Eneko Alonso
      ealonso@level-studios.com
    • iPhone: whatis it?
      Eneko Alonso
      ealonso@level-studios.com
    • Drupal + iPhoneWhy?
      Eneko Alonso
      ealonso@level-studios.com
    • Drupal+iPhone: why?
      Let your users access your site on the go
      But also, great for administration
      Eneko Alonso
      ealonso@level-studios.com
    • Setup: what do we need?
      Eneko Alonso
      ealonso@level-studios.com
    • Drupal: what we need
      Drupal site:
      [X]AMP Server (PHP, Apache, MYSQL)
      Drupal distribution (6.14 in this demo)
      JSON API:
      Services Module
      JSON Server Module
      Eneko Alonso
      ealonso@level-studios.com
    • iPhone: what we need
      XCode with iPhone SDK (3.0 on this demo)
      TouchJSON library
      http://developer.apple.com/iphone/
      http://code.google.com/p/touchcode/wiki/TouchJSON
      Eneko Alonso
      ealonso@level-studios.com
    • iPhone: what we don’t need
      iPhone Developer License*
      * Needed only to put your app in your iPhone for testing.
      http://developer.apple.com/iphone/
      http://code.google.com/p/touchcode/wiki/TouchJSON
      Eneko Alonso
      ealonso@level-studios.com
    • Setup
      Eneko Alonso
      ealonso@level-studios.com
    • Create a user account on the site:
      http://[server_ip]/user/register
      Write a new story:
      http://[server_ip]/node/add/story
      On XCode 3.1, create a new iPhone project
      Demo Setup
      Eneko Alonso
      ealonso@level-studios.com
    • Drupal Setup
      Create DB: CREATE DATABASE drupal_iphone_demo;
      Download drupal: wget http://drupal.org/…
      Install drupal(browse to your server url)
      Install and enable modules (Services)
      Configure user permissions
      Eneko Alonso
      ealonso@level-studios.com
    • iPhone Setup
      Create new Project
      Add JSON library to project (TouchJSON)
      Add a button to the view
      Add a method for system.connect
      Execute server request and show data on console
      Eneko Alonso
      ealonso@level-studios.com
    • API Calls
      Eneko Alonso
      ealonso@level-studios.com
    • system.connect
      Initiates user session
      Server returns valid sessionId for login
      Eneko Alonso
      ealonso@level-studios.com
    • user.login
      Logs user into Drupal
      Same user permissions as on the site
      Eneko Alonso
      ealonso@level-studios.com
    • node.get
      Retrieves a full node from the server
      Eneko Alonso
      ealonso@level-studios.com
    • node.save
      Saves changes or creates a new node
      Eneko Alonso
      ealonso@level-studios.com
    • views.get
      Collection of nodes (great for table views)
      Eneko Alonso
      ealonso@level-studios.com
    • Creating custom services
      Eneko Alonso
      ealonso@level-studios.com
    • myservice.hello
      Let’s create a ‘Hello world’ service
      Eneko Alonso
      ealonso@level-studios.com