Your SlideShare is downloading. ×

SVCC Drupal+iPhone

1,596

Published on

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.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,596
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Drupal + iPhone = AWESOME
    Silicon Valley Code Camp
    October 2009
    Eneko Alonso
    ealonso@level-studios.com
  • 2. 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
  • 3. DRUPAL
    Eneko Alonso
    ealonso@level-studios.com
  • 4. 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
  • 5. iPhone
    Eneko Alonso
    ealonso@level-studios.com
  • 6. iPhone: whatis it?
    Eneko Alonso
    ealonso@level-studios.com
  • 7. Drupal + iPhoneWhy?
    Eneko Alonso
    ealonso@level-studios.com
  • 8. Drupal+iPhone: why?
    Let your users access your site on the go
    But also, great for administration
    Eneko Alonso
    ealonso@level-studios.com
  • 9. Setup: what do we need?
    Eneko Alonso
    ealonso@level-studios.com
  • 10. 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
  • 11. 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
  • 12. 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
  • 13. Setup
    Eneko Alonso
    ealonso@level-studios.com
  • 14. 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
  • 15. 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
  • 16. 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
  • 17. API Calls
    Eneko Alonso
    ealonso@level-studios.com
  • 18. system.connect
    Initiates user session
    Server returns valid sessionId for login
    Eneko Alonso
    ealonso@level-studios.com
  • 19. user.login
    Logs user into Drupal
    Same user permissions as on the site
    Eneko Alonso
    ealonso@level-studios.com
  • 20. node.get
    Retrieves a full node from the server
    Eneko Alonso
    ealonso@level-studios.com
  • 21. node.save
    Saves changes or creates a new node
    Eneko Alonso
    ealonso@level-studios.com
  • 22. views.get
    Collection of nodes (great for table views)
    Eneko Alonso
    ealonso@level-studios.com
  • 23. Creating custom services
    Eneko Alonso
    ealonso@level-studios.com
  • 24. myservice.hello
    Let’s create a ‘Hello world’ service
    Eneko Alonso
    ealonso@level-studios.com

×