18
Alloy App Framework Overview Tony Lukasavage Lead Alloy Engineer Appcelerator @tonylukasavage [email protected]

Alloy - Codestrong 2012

Embed Size (px)

Citation preview

Page 1: Alloy - Codestrong 2012

Alloy App Framework Overview

Tony LukasavageLead Alloy Engineer

Appcelerator@tonylukasavage

[email protected]

Page 2: Alloy - Codestrong 2012

• MVC Framework

• Declarative UI

• Free and open source

• Highly customizable

• Awesome. Yes, awesome.

What is Alloy?

Page 3: Alloy - Codestrong 2012

Titanium App

Page 4: Alloy - Codestrong 2012

Alloy App

index.tss

index.xml

Page 5: Alloy - Codestrong 2012

$.index.open()

index.js

Page 6: Alloy - Codestrong 2012

• Primary• views• controllers• styles• models• assets

• Optional• lib• migrations• widgets

• Platform-specific folders

Structure

Page 7: Alloy - Codestrong 2012

• IDs and classes

• Platform and form factor specific markup

• Inline events

• API parsers

Views

Page 8: Alloy - Codestrong 2012

• TSS format• Titanium constants• Localization• Alloy configuration items

• Group by ID, class, or Ti API

• Device queries

• Global style

Styles

Page 9: Alloy - Codestrong 2012

• Element access via $

• Public interface via exports

• Compiler directives

• Backbone eventing

• Underscore and builtins

• Anything Titanium can do

Controllers

Page 10: Alloy - Codestrong 2012

• Backbone Models & Collections

• Persistence adapters

• Migration support

Models

Page 11: Alloy - Codestrong 2012

• Self-contained UI and logic

• Work in any Alloy app

• Cross-platform

• Simple to complex

Widgets

Page 12: Alloy - Codestrong 2012

Traditional

Library

300 lines of code

Page 13: Alloy - Codestrong 2012

• Generates CommonJS controller modules

• builtins

• Optimizations

• Catch errors before runtime

Compilation

Page 14: Alloy - Codestrong 2012

Error output

• Faster development iterations

• Surfaces potential errors

Page 15: Alloy - Codestrong 2012

• Quick Start: bit.ly/alloyqs

• [sudo] npm install –g alloy

• TiStudio/TiSDK 3.0

• More Information• Wiki docs: bit.ly/alloy_docs• Google Groups: bit.ly/alloy_group• Github: github.com/appcelerator/alloy

Getting Started

Page 16: Alloy - Codestrong 2012

github.com/appcelerator/Codestrong

Page 17: Alloy - Codestrong 2012

Tony Lukasavage@tonylukasavage

[email protected]

Page 18: Alloy - Codestrong 2012

Scaffolding