Introduction: Host Your Smartphone App on Your Raspberry Pi!
I'm currently working on a Sencha Touch project making an Entrepreneur application, which will be released in a couple of months... Stay tuned! I only want say that it is a bit more complex than this example... but you have to start with something, right?!
Next step: The framework
Step 1: Host Your Sencha Touch App on Your Raspberry Pi!
If you really are thinking of making an App, you should look at http://docs.sencha.com/touch/2-0/#!/example
Creation of an App
This was my first try, so I made some minor good codelines, but even though.... it works!! (Not in Internet Explorer, because the framework doesn't support it, but who has a Windows phone... ;).
The basics are:
Define your app in a MVC fashion:
The Models take care of data structure.
The Views displays data.
The Controllers take care of logic.
The app.js holds the application.
(And the other files are filed as above... if it is a big App).
Read more at http://docs.sencha.com/touch/2-0/#!/guide/getting_started
(Mine is not a good example, but as I said it works!)
Step 2: Create Your Sencha Touch App !
IDE... You could use Sencha Architect or senchafiddle to make your Web-App, but I really recommend you to just design your views, models and controllers in those program and then start using Aptana Studio to make your coding easier.
Aptana can be found here http://aptana.org/
Import your Sencha project an let the keys fly!
Always use the Docs for reading about the xtype's or containers etc, you are using in your application!
Let the docs be your best friend!
Next step: Place the App on your Pi!
Step 3: Host Your Sencha Touch App on Your Raspberry Pi!
To make your Pi visible on the Internet look here:
To enable ftp and ssh look here:
Place your Sencha Touch app in var/www/ [your app]
Surf to your created app. (Mine is here: http://188.8.131.52/guru/
Note: use Safari or Chrome preferably. The Guru can be a bit grumpy.. ;)
Make a bookmark on the home screen, and voilá, you have your own iPhone or Android app!
Perhaps you have a question? Feel free to ask!
May the Guru and Pi with Sencha be with U!