| layout | docpage |
|---|---|
| title | Application tutorial |
| description | A complete tutorial on how to build a simple Royale application |
| permalink | /create-an-application/application-tutorial |
A complete tutorial on how to build a simple Royale application
This tutorial will take you through building an app that displays the commit logs for the Apache Royale project by connecting to its GitHub{:target='_blank'} repository on the Apache servers.
At the end of this tutorial we'll get the following:
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="100%" height="350" src="assets/application-tutorial/index.html"></iframe>This example uses Basic components to build the interface. These components have a very, well, basic look and feel. For a more advanced look and feel for your application you try using the Jewel or MDL sets.
The steps in this tutorial start with a blank file and walk you through what to add and why. Or you can get the complete source here{:target='_blank'}.
Note that Royale examples are set up to build with Apache Maven{:target='_blank'} so the folder structure reflects that. There are other ways to organize your code.
The first six segments will result in a functional application.
-
The Main Application File This segment starts filling in the main application file.
-
Data Model This segment adds the code that manages the data in the application, including network access to GitHub.
-
View (User Interface) This segment builds out the initial user interface.
-
Controller This segment hooks up the user interface to code that responds to the user's interactions.
-
Build This segment gets the code to compile.
-
Run This segment discusses how to view the results.
The next four segments will discuss further improvements needed to make a production-ready version.
-
Debugging This segment introduces a couple of techniques for figuring out why your app isn't working as expected.
-
Security This segment discusses how to deal with network access to other domains.
-
Production This segment discusses the differences between a development version and a production version of an app.
-
Value Objects This segment explains how Value Objects (Data Classes) are useful in development and production.
The remaining segments will discuss further improvements needed to add additional common functionality. (Note: These pages are not yet complete.)
-
Localization This segment adds the ability to show the user-interface prompts in different languages.
-
Filters This segment adds the ability to filter what commits are shown.
-
Local Storage This segment shows how to store information in a cookie or equivalent in order to retain some of the state of the app between runs.
-
Routing This segment shows how to map URL parameters to different initial values in the application, and vice versa.
This is going to be fun!
{:align="center"} | Next Page