- Appcelerator Platform
- Appcelerator Dashboard
- Appcelerator Studio
- Creating Your First Mobile App
- Next Steps
Welcome to the Appcelerator Platform! The Appcelerator Platform helps you develop cross-platform mobile applications using the Titanium SDK, Alloy, Appcelerator Studio and the Appcelerator CLI, then lets you manage the entire lifecycle of the application with debugging, testing, deploying, crash monitoring and analytic data collection.
This guide introduces the Appcelerator Platform and walks through the steps of setting up Appcelerator Studio, downloading and installing the necessary Titanium and third-party SDKs and tools, and creating a simple project.
If you are developing native Android application with Java or native iOS application with Objective-C, see the Appcelerator Platform Services Native SDKs to get started with integrating Appcelerator Platform services with your application.
The Appcelerator Platform consists of several components:
- Appcelerator Studio and Appcelerator CLI: tools to create and develop your mobile and cloud applications.
- Alloy Framework and the Titanium SDK: an MVC framework and cross-platform SDK to help you rapidly develop mobile applications from a single code base.
- Axway API Builder: an opinionated framework to build and deploy APIs to the cloud that can be consumed by multiple clients.
- Appcelerator Dashboard: a web portal used to monitor your application's heath and usage. This dashboard is aimed for technical users.
- Appcelerator Platform Services: set of features that includes free analytics services, and the performance management and automated testing services, which require an Enterprise subscription.
- Appcelerator Insights: an application used to monitor your application's metrics, which requires a Team subscription. This application is aim for business users.
To start using the Appcelerator Platform, you need an account to log in to the Appcelerator Dashboard and Appcelerator Studio, or Appcelerator Insights.
- If you want to try the Appcelerator Platform for free, sign up for an Appcelerator Platform account.
- If you are part of an Appcelerator Organization, your organization's Appcelerator Platform administrator sends an invitation to you to log in to the Appcelerator Dashboard and create an account.
- If you are an administrator, see Managing Organizations for more information about adding users to your organization's Appcelerator Platform and provisioning them either Dashboard or Insights access.
The Appcelerator Dashboard lets you view and diagnose your mobile application's health and usage statistics. The Dashboard provides a lot of technical data about your application.
To use the dashboard, log in to https://platform.appcelerator.com with your Appcelerator Platform credentials. The first time you use the Appcelerator Dashboard, you will be prompted to enter an authorization code. This code is emailed to the account associated with your Appcelerator Platform credentials. Copy and paste this code in the authorization page and click Authorize.
Once the dashboard is displayed, select your application from the Apps list in the top-left corner and click on the different Appcelerator Service tabs on the top to view difference usage statistics and reports. To manage your account, click on the Profile drop-down menu (your name) in the top-right corner and select an option.
For more information about the dashboard, see Appcelerator Dashboard.
This section guides you through the steps of setting up Appcelerator Studio. Appcelerator Studio is an Eclipse-based integrated development environment (IDE) used to develop your mobile projects and enable Appcelerator Services, which are monitored through the Appcelerator Dashboard. Studio requires the Titanium SDK and additional third-party SDKs to develop mobile applications.
In order to run Appcelerator Studio and the Titanium SDK, your system environment must meet the following requirements:
- Operating System: a recent version of Windows, Mac OS X or Ubuntu
- Memory: 2 GB RAM (available memory, rather than total memory)
- Java Runtime: Oracle JDK (no other brand of Java is suitable)
- Node.js: required for the Titanium command-line tools like the CLI, Alloy and
For Mac OS X and Windows systems, Studio guides your through the process of installing the Oracle JDK and Node.js. For more details, see Prerequisites.
Download and Install Studio
- Go to http://web.appcelerator.com/product/studio.
- Download the installation file for the version of your operating system.
- Once downloaded, install Appcelerator Studio:
- For Mac OS X and Windows systems, run the installer program.
Launch and Update Studio
When you launch Appcelerator Studio for the first time, login with your Appcelerator Platform username and password. Studio prompts you to select a workspace, which is simply a folder where Studio places all of the project files and IDE preferences data. If you are behind a proxy, you will need to configure your proxy settings in Studio before logging in (see Using Studio From Behind a Proxy).
When Studio launches for the first time, it automatically starts installing the latest Titanium SDK, Appcelerator Service modules and additional Appcelerator command-line tools. Once this is completed, confirm that no further updates are pending and that Studio is at the latest version.
From the menu bar, select Help > Check for Appcelerator SDK Updates to verify that all the official Appcelerator components are installed and repeat this step until there are no more updates available.
To develop native applications with Titanium you need the SDKs and tools for those native platforms installed on your system. For example, to develop Android applications you need the Android SDK and toolchain installed.
The first time you launch Studio the Platform Configuration dialog opens. This dialog indicates which platform SDKs are installed and which are not, and lets you easily install individual SDKs. In the following screenshot, the system has none of the native SDKs installed.
To install the platform SDKs:
- Select the platforms you want to install.
- Optionally click Settings next to each platform to customize the installation configuration. For more details, see Installing Platform SDKs.
- Click Configure to start the installation process.
Studio begins downloading and installing each SDK you selected, according to the settings you specified. In the case of iOS, Studio launches the App Store application installed on your Mac to the XCode download page.
Creating Your First Mobile App
The following directions guide you through the steps of importing the Employee Directory sample project, which demonstrates some components of the Appcelerator Platform.
Import the Sample Project
To import the Employee Directory sample project:
- In the global tool bar, click the Show Studio Dashboard icon to open the Appcelerator Studio Dashboard if it is not already open.
- In the Appcelerator Studio Dashboard, locate the Employee Directory project.
- Click the Import Project button.
- The New Sample Project wizard appears. Use the default settings and click the Finish button to start importing the sample project.
Run and Test the Client Application
After the project is imported, run it.
- In the Project Explorer view, verify your project is selected.
In the global toolbar, select Run from the Launch Mode drop-down and select a target to deploy to from the Target drop-down.
Once the application launches, click on profiles to view the detailed information about the contact. Click on the Add to Bookmarks links and the icons below it.
If you open and look at the
app/controllers/directory.js files, you will notice there are several calls to
Ti.Analytics methods. Your interaction with the application triggers calls to these methods, which sends data to the Appcelerator servers.
View Application Statistics in the Dashboard
To view the data sent by the client application to the server:
- Go to the Appcelerator Dashboard. To get to the Appcelerator Dashboard, either:
- Go back to Appcelerator Studio. In the Project Explorer view, right-click in the project and select Appcelerator Services > App Details. Login with your Appcelerator Platform credentials.
- Go to https://platform.appcelerator.com. Login with your Appcelerator Platform credentials. Select Directory with the mobile phone next to it from Apps drop-down list in the top-left corner.
- In the Overview tab, view information and statistics about your application.
- Click the Analytics tab to see current real-time usage of the client application. Click on Users , Sessions and Events to view different data sets.
Let's create an event funnel to track the user flow. To create an event funnel:
- While the Analytics tab is selected, click Event Funnels.
- In the Enter a Name for your funnel text box, enter "Bookmarks".
- Drag the
<platform>-profile-viewedevent to the Funnel.
- Drag the
<platform>-profile-addBookmark-clickedevent below the previous event.
- Click Save.
The dashboard will display your new event funnel displaying the percentage of users that click the bookmark link when they viewed a profile.
Interact with the client application and return to the Dashboard to see updated statistics.
Congratulations! You've just created and ran your first mobile application.
To try out the features of the Appcelerator Platform:
- See Appcelerator Platform Services for information about Appcelerator Analytics, Performance and Test services.
- See Appcelerator Dashboard for more information about using the Appcelerator Dashboard.
- See Titanium Development for more information about the developing Titanium applications with Appcelerator Studio, such as code profiling or analysis.
To integrate Appcelerator Platform Services with native applications, see Appcelerator Platform Services Native SDKs.
For more information about the Titanium SDK, review the videos in the Appcelerator Studio Dashboard, or try importing one of the other sample projects as explained in Titanium Samples or follow Creating Your First Titanium App to build your first Alloy application.