ti connect presentation on appcelerator titanium alloy backbone sync adapters/ ibm bluemix

14
Backbone Sync and Appcelerator Alloy Aaron K. Saunders CEO Clearly Innovative Inc Co-Founder Startup Middle School

Upload: aaron-saunders

Post on 02-Dec-2014

1.823 views

Category:

Technology


1 download

DESCRIPTION

Appcelerator Titanium Alloy Backbone Sync Adapter to IBM BlueMix Technology with Promises and ListView binding Link to Source code - https://github.com/aaronksaunders/tiConnectSampleApp Link to associated JIRA ticket - https://jira.appcelerator.org/browse/ALOY-1174

TRANSCRIPT

Page 1: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Backbone Sync and Appcelerator Alloy

Aaron K. Saunders

CEO Clearly Innovative IncCo-Founder Startup Middle School

Page 2: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Who Am IFounder & CEO Clearly Innovative Inc

Clearly Innovative IncFull Services Digital Agency, Web & Mobile SolutionsBuilt Award Winning Solution for Queens Public

LibraryMultiple solutions & clients over last 4 years using

Appcelerator Titanium

Former Appcelerator Platform Evangelist

Author of upcoming book on Appcelerator Alloy and Appcelerator Cloud Services

Page 3: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Shameless Plug

Page 4: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Appcelerator Titanium Alloy

MVC Framework for building Apps with Titanium

Borrows heavily from BackboneJS for Model and Collection Framework

Model & Collection binding integrated into View functionality of Alloy

Model & Collection functionality === Seperation of Concerns in applications

Page 5: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

BackboneBackbone.js gives structure to web

applications by providing models with key-value binding and custom events,

collections with a rich API of enumerable functions, views with declarative event

handling, and connects it all to your existing API over a RESTful JSON interface.

Page 6: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Backbone In AlloyModels

Keep track of your data

CollectionsManage lists/arrays of your data

Sync Adapter(s)Local Storage, SQL, Properties, extendable

Page 7: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Backbone Sync AdapterSupport for managing application data/content

Based on common REST verbsGET > READPUT > UPDATEPOST > CREATEDELETE > DELETE

Can be integrated with local or remote data stores

Page 8: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Connecting to REST Endpoint

IBM Bluemix REST Data Store sample JSON format

Page 9: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Added Promises to Adapter

Better way to manage asychronous calls in code

Removes this from code

Page 10: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Why Should You CareApps spend A LOT of time getting data

Apps spend A LOT of time integrating with REST APIs

Having common pattern for interacting with data is a good thing

Its easy to do !!Lots of information on Backbone Models available

Page 11: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Added Promises to Adapter

Better way to manage asychronous calls in code

Removes this from code

Page 12: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

SAMPLE CODE TIME

Page 13: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Final ThoughtsCode with Readme and Presentation

https://github.com/aaronksaunders/tiConnectSampleApp

Information on Promiseshttps://github.com/kriskowal/q

Slides

Page 14: Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix

Thanks

@aaronksaunders

http://www.clearlyinnovative.com