Difference between revisions of "Mobicloud tutorial"
From Knoesis wiki
(→Hello World Tutorial) |
(→Hello World Tutorial) |
||
Line 2: | Line 2: | ||
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 | + | # A minimal controller with two actions. |
− | # | + | # Two minimal views demonstrating a simple user interface. |
{{#ev:youtube|V4XICliXMqA|400|left|Basic MobiCloud Tutorial : Creating a Hello World Application}} | {{#ev:youtube|V4XICliXMqA|400|left|Basic MobiCloud Tutorial : Creating a Hello World Application}} | ||
Line 10: | Line 10: | ||
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 | 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 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 | + | # A back-end application with a database that stores a set of greetings. |
− | The | + | The actions are adding a greeting and displaying the stored set of greetings. |
+ | |||
+ | The create process requires | ||
+ | # Getting the users greeting through a mobile UI component. | ||
+ | # Encoding the values in XML and sending it to the server. | ||
+ | # Decoding the values in the server and constructing the appropriate date object. | ||
+ | # storing the greeting data object in the database. | ||
+ | |||
+ | |||
+ | The retrieve process requires | ||
# passing the request to the server to fetch the greeting | # passing the request to the server to fetch the greeting | ||
# fetching the greeting from the database | # fetching the greeting from the database | ||
Line 18: | Line 27: | ||
# decoding the values in the mobile side and displaying it in the UI | # decoding the values in the mobile side and displaying it in the UI | ||
+ | == The automated deployment with Google App Engine == | ||
{{#ev:youtube|bM9SydjMbzw|400|left|Basic MobiCloud Tutorial : Automated deployment of the Google App Engine Application}} | {{#ev:youtube|bM9SydjMbzw|400|left|Basic MobiCloud Tutorial : Automated deployment of the Google App Engine Application}} |
Revision as of 15:12, 5 October 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 two actions.
- Two minimal views 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.
The actions are adding a greeting and displaying the stored set of greetings.
The create process requires
- Getting the users greeting through a mobile UI component.
- Encoding the values in XML and sending it to the server.
- Decoding the values in the server and constructing the appropriate date object.
- storing the greeting data object in the database.
The retrieve 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