Difference between revisions of "Mobicloud tutorial"
From Knoesis wiki
Line 1: | Line 1: | ||
== Hello World Tutorial == | == Hello World Tutorial == | ||
− | |||
− | |||
This tutorial covers the creation of a '''Hello world''' application. This application has | This tutorial covers the creation of a '''Hello world''' application. This application has | ||
# A minimal model with only one attribute. | # A minimal model with only one attribute. | ||
# A minimal controller with only one action. | # A minimal controller with only one action. | ||
# A minimal view demonstrating a simple user interface. | # A minimal view demonstrating a simple user interface. | ||
+ | |||
+ | {{#ev:youtube|yeHrz-7FvRo|400|left|Basic MobiCloud Tutorial : Creating a Hello World Application}} | ||
+ | |||
+ | === What does the 'Hello World' do ? === | ||
+ | Similar to other ''hello worlds'', this one does nothing fancy, except illustrate the use of the language and the major components of the generated code. This hello world has | ||
+ | # A mobile UI with a textbox and a button to fetch a greeting | ||
+ | # A back-end application with a database that stores a set of greetings [In this case only 1] | ||
+ | |||
+ | The action would be just pressing the button, which fetches the greeting and displays it on the mobile device. This process requires | ||
+ | # passing the request to the server to fetch the greeting | ||
+ | # fetching the greeting from the database | ||
+ | # encoding the values in XML and sending it to the mobile device | ||
+ | # decoding the values in the mobile side and displaying it in the UI |
Revision as of 16:10, 2 June 2011
Hello World Tutorial
This tutorial covers the creation of a Hello world application. This application has
- A minimal model with only one attribute.
- A minimal controller with only one action.
- A minimal view demonstrating a simple user interface.
What does the 'Hello World' do ?
Similar to other hello worlds, this one does nothing fancy, except illustrate the use of the language and the major components of the generated code. This hello world has
- A mobile UI with a textbox and a button to fetch a greeting
- A back-end application with a database that stores a set of greetings [In this case only 1]
The action would be just pressing the button, which fetches the greeting and displays it on the mobile device. This process requires
- passing the request to the server to fetch the greeting
- fetching the greeting from the database
- encoding the values in XML and sending it to the mobile device
- decoding the values in the mobile side and displaying it in the UI