Code Monkey home page Code Monkey logo

appc-alloy-book's Introduction

Book session on Codementor

Building Cross-Platform Apps using Titanium, Alloy, and Appcelerator Cloud Services

Book Cover Image

Where to get the book

Book is available at

Overview

This is a working application based on the code examples from the book. A user can login/logout, see an activity feed and map, upload photos, and add friends. ACS features include users, comments, friends, maps/locations, push notifications, and more. Also note the use of Alloy, models, progress windows, and the ACS sync adapter.

This repo of the source code will be updated to ensure the application functions on the latest version of Appcelerator Titanium Alloy. Please feel free to add issues and submit pull request where appropriate.

A few updates have already been made since the release of the book. Check out this blog post for further details, or follow along the commit history.

As the materials in the repo begin to diverge from the original contents of the book we will create a branch so there will always remain the historical context of the application.

Be Sure to Setup ACS

Setup your application in ACS and replace the following keys in tiapp.xml:

<property name="acs-oauth-secret-production" type="string"></property>
<property name="acs-oauth-key-production" type="string"></property>
<property name="acs-api-key-production" type="string"></property>
<property name="acs-oauth-secret-development" type="string"></property>
<property name="acs-oauth-key-development" type="string"></property>
<property name="acs-api-key-development" type="string"></property>

A quick short cut for getting the keys needed is to create a new Alloy Application and click cloud enable in the settings. After the app is created, open the tiapp.xml and copy the keys from there and paste them into this project.

Setup google maps API key

Refer to the "Obtain a Google Maps API key" section here and replace the google maps API key in tiapp.xml:

<meta-data
android:name="com.google.android.maps.v2.API_KEY" android:value="..."/>

Setup Keys For Facebook and Twitter

The keys have been removed from the tiapp.xml, this application will not function until you setup an ACS account and get the keys as mentioned above. For the twitter and facebook to function properly please follow instructions in the book for creating and app in the specified social media platforms

http://docs.appcelerator.com/titanium/3.0/#!/api/Modules.Facebook

https://apps.twitter.com/app/new

CREATING HASH FOR ANDROID FACEBOOK SSO

$ keytool -v -exportcert -keystore "/Users/<your username>/Library/Application Support/Titanium/mobilesdk/osx/<3.4.0.GA or your version>/android/dev_keystore" -storepass tirocks -alias tidev > ./exportedtidevcert.txt
$ openssl sha1 -binary ./exportedtidevcert.txt  > ./exportedtidevcert_sha.txt
$ openssl enc -a -e < ./exportedtidevcert_sha.txt  > ./output.txt

appc-alloy-book's People

Contributors

aaronksaunders avatar

Watchers

James Cloos avatar Peter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.