This repository contains a variety of App Cloud code samples. Each directory is a standalone template that can be viewed in a WebKit browser (e.g. Chrome) or in the Workshop app. In either case, the template should be run from a local web server.
Download the Workshop app at http://bit.ly/iworkshop (iOS) or http://bit.ly/aworkshop (Android).
See the App Cloud docs and the App Cloud public mailing list for more information about any of the techniques you see here.
Additional code samples are available in the App Cloud SDK, which can be downloaded from App Cloud Studio.
-
i18n: Demonstrates multiple language support at the HTML layer using JavaScript templates, properties files, and parameterized content feeds.
-
orientation: Demonstrates how to alter a layout when switching between landscape and portrait modes using CSS3 Media Queries and Flexible Box Model.
-
reading-list: Demonstrates how to use
bc.core.cache()
to set and get a list of saved articles. -
news-reader: Demonstrates how to create a simple news view from an RSS feed.
-
parameterized-feed: Demonstrates how to create a parameterized content feed using a weather API.
-
universal: Demonstrates one way to implement a "universal" app that works across phones and tablets.
-
geolocation: Demonstrates how to access the user's current position and plot it on a map.
-
authentication: Demonstrates one way to implement authentication and authorization via a REST API.
-
progressive-images: Demonstrates how to progressively load images as they come into view.