Building mobile apps with JavaScript and PHP
Upcoming SlideShare
Loading in...5
×
 

Building mobile apps with JavaScript and PHP

on

  • 9,730 views

 

Statistics

Views

Total Views
9,730
Views on SlideShare
9,730
Embed Views
0

Actions

Likes
2
Downloads
84
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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

    Building mobile apps with JavaScript and PHP Building mobile apps with JavaScript and PHP Presentation Transcript

    • Mobile apps with JavaScript and PHP Ed Finkler Fictive Kin @funkatron http://funkatron.com http://joind.in/3389Thursday, May 26, 2011
    • Me • I work on Gimme Bar (http://gimmebar.com) • I work on Spaz (http://getspaz.com) • Sometimes I write PHP, sometimes I write JavaScriptThursday, May 26, 2011
    • Why JavaScript? • Offers the best option for cross-platform mobile dev • strong, diverse community, good tools • deployable from server or locally-installedThursday, May 26, 2011
    • Most options are JavaScript + HTML + CSSThursday, May 26, 2011
    • Strong webkit implementations on most platforms • iOS • Android • webOS • BlackBerry • SymbianThursday, May 26, 2011
    • Deploy on server: • limits your access to device functionality • far easier to updateThursday, May 26, 2011
    • Deploy on device • access more platform-specific functionality • updating can be a painThursday, May 26, 2011
    • Shim libraries bridge JS and device functionality • HP Palm webOS special case – all apps build on JS/HTML/CSSThursday, May 26, 2011
    • Options for device deployment • PhoneGap • Titanium MobileThursday, May 26, 2011
    • PhoneGap • Wrapper + shim layer – very basic, works on several platforms • Much more flexible; lets you pick any approach for building the app • Potentially slower; less access to platform-specific APIs • http://www.phonegap.com/Thursday, May 26, 2011
    • PhoneGap device API support (varies by device) • Accelerometer • Geoloc • Camera • Media • Compass • Network connectivity • Contacts • Notications • Device Info • Storage • Native Events • Plugins can add additional https://github.com/purplecabbage/ • File phonegap-pluginsThursday, May 26, 2011
    • PhoneGap + Your preferred approach • Lots of JS DOM frameworks work well in PhoneGap • jo (http://joapp.com) • jQuery Mobile (http://jquerymobile.com) • Enyo (http://developer.palm.com/) • Sencha Touch (http://www.sencha.com/products/touch/) • Many more!Thursday, May 26, 2011
    • Titanium Mobile • Full-stack, access to native UI components via JavaScript. Works on Android and iOS. • Potentially faster • Anecdotally, can be kinda buggy • http://www.appcelerator.com/Thursday, May 26, 2011
    • Titanium Mobile device API support • Similar base support to PhoneGap, plus • Android Calendar • Facebook APIs • Map • XML • Yahoo APIs • Plugins can add additional functionality; can be written in native codeThursday, May 26, 2011
    • Spaz in Enyo • Dev in Chrome • Test with emulator VM • We can build really fast with thisThursday, May 26, 2011
    • Server Side: PHP • You can build your server side stuff lots of ways • Pick what works for you and STFU • Some simple FWs • koi • slim • breeze • limonade • glue • flightThursday, May 26, 2011
    • RESTful implementations with JSON responses work best • Make a simple HTTP call w/ basic query data • respond with JSON structure • https://www.ibm.com/developerworks/webservices/library/ws-restful/Thursday, May 26, 2011
    • FRAPI • A great framework for rapidly building RESTful APIs • Using it at Gimme BarThursday, May 26, 2011
    • Examples! • WildGarlic • in Jo • in jQueryMobile + Backbone.js • in EnyoThursday, May 26, 2011
    • Examples! • FRAPI • api.getspaz.comThursday, May 26, 2011
    • Code from examples • http://getfrapi.com • https://github.com/funkatron/wildgarlic • https://github.com/funkatron/WildGarlic-jqmobile • https://github.com/funkatron/Spaz-Web-APIsThursday, May 26, 2011
    • Q&A • Axe me • http://joind.in/3389Thursday, May 26, 2011