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
Ti Connect Presentation on Appcelerator Titanium Alloy Backbone Sync Adapters/ IBM Bluemix
1. Backbone Sync and
Appcelerator Alloy
Aaron K. Saunders
CEO Clearly Innovative Inc
Co-Founder Startup Middle School
2. Who Am I
Founder & CEO Clearly Innovative Inc
Clearly Innovative Inc
Full Services Digital Agency, Web & Mobile Solutions
Built Award Winning Solution for Queens Public Library
Multiple solutions & clients over last 4 years using
Appcelerator Titanium
Former Appcelerator Platform Evangelist
Author of upcoming book on Appcelerator Alloy
and Appcelerator Cloud Services
4. 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
5. Backbone
Backbone.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.
6. Backbone In Alloy
Models
Keep track of your data
Collections
Manage lists/arrays of your data
Sync Adapter(s)
Local Storage, SQL, Properties, extendable
7. Backbone Sync Adapter
Support for managing application data/content
Based on common REST verbs
GET > READ
PUT > UPDATE
POST > CREATE
DELETE > DELETE
Can be integrated with local or remote data
stores
8. Connecting to REST
Endpoint
IBM Bluemix REST Data Store sample JSON format
9. Added Promises to
Adapter
Better way to manage asychronous calls in code
Removes this from code
10. Why Should You Care
Apps 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
11. Added Promises to
Adapter
Better way to manage asychronous calls in code
Removes this from code
13. Final Thoughts
Code with Readme and Presentation
https://github.com/aaronksaunders/tiConnectSampl
eApp
Information on Promises
https://github.com/kriskowal/q
Slides