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

SVCC Drupal+iPhone



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.



Total Views
Views on SlideShare
Embed Views



1 Embed 8 8



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.

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

    SVCC Drupal+iPhone SVCC Drupal+iPhone Presentation Transcript

    • Drupal + iPhone = AWESOME
      Silicon Valley Code Camp
      October 2009
      Eneko Alonso
    • Eneko Alonso
      I am a Software Engineer and UI Developer, currently working at Level Studios
      Eneko Alonso
    • DRUPAL
      Eneko Alonso
    • Drupal: what is it?
      Content Management System
      Community (user management, roles, permissions)
      Base for great web applications
      Check out
      Eneko Alonso
    • iPhone
      Eneko Alonso
    • iPhone: whatis it?
      Eneko Alonso
    • Drupal + iPhoneWhy?
      Eneko Alonso
    • Drupal+iPhone: why?
      Let your users access your site on the go
      But also, great for administration
      Eneko Alonso
    • Setup: what do we need?
      Eneko Alonso
    • 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
    • iPhone: what we need
      XCode with iPhone SDK (3.0 on this demo)
      TouchJSON library
      Eneko Alonso
    • iPhone: what we don’t need
      iPhone Developer License*
      * Needed only to put your app in your iPhone for testing.
      Eneko Alonso
    • Setup
      Eneko Alonso
    • Create a user account on the site:
      Write a new story:
      On XCode 3.1, create a new iPhone project
      Demo Setup
      Eneko Alonso
    • Drupal Setup
      Create DB: CREATE DATABASE drupal_iphone_demo;
      Download drupal: wget…
      Install drupal(browse to your server url)
      Install and enable modules (Services)
      Configure user permissions
      Eneko Alonso
    • 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
    • API Calls
      Eneko Alonso
    • system.connect
      Initiates user session
      Server returns valid sessionId for login
      Eneko Alonso
    • user.login
      Logs user into Drupal
      Same user permissions as on the site
      Eneko Alonso
    • node.get
      Retrieves a full node from the server
      Eneko Alonso
      Saves changes or creates a new node
      Eneko Alonso
    • views.get
      Collection of nodes (great for table views)
      Eneko Alonso
    • Creating custom services
      Eneko Alonso
    • myservice.hello
      Let’s create a ‘Hello world’ service
      Eneko Alonso