Instructables

Host your Smartphone App on your Raspberry Pi!

Picture of Host your Smartphone App on your Raspberry Pi!
Background:

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?!

To get some knowledge of the Sencha Touch Framework I created a basic App - based on my Nonsense Guru javascript from 1997. Yes that's right! Just a couple of lines had to be changed.

The app was made entirely in javascript so the old script fitted right in...

Next step: The framework 
 
Remove these adsRemove these ads by Signing Up

Step 1: Host your Sencha Touch App on your Raspberry Pi!

Picture of Host your Sencha Touch App on your Raspberry Pi!
Sencha Touch is in my opinion the greatest framework for making a web page / javascript based application simulating a native app in your smartphone there is! (The framework take care of browser kirks and it doesn't mater if it's displayed on an iPhone or Android phone)

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:
Model
View
Controller

The Models take care of data structure.
The Views displays data.
The Controllers take care of logic.

You need an Index.htm file which declare javascripts, framework files and css-files used.

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!)

Next step:
IDE

antares72 (author) 1 year ago
thanks!
jimbob1381 year ago
Just saying, the image of the guru here is Guru Tegh Bahadur. Some people might take offense when they see this Sikh religious leader portrayed this way. You might want to change the image to a non-Sikh Guru image. Just a heads-up.
antares72 (author)  jimbob1381 year ago
Changed guru. Hope he doesn't mind. (Note that page can be cached..)
antares72 (author)  jimbob1381 year ago
Can you please give example? I really don't want to offend someone.
sounds cool! do you know of any good resources to get started with Sencha?
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!