hebiag
Last Updated: February 25, 2016
·
1.473K
· g33konaut
D38ff2119d6ace825b4c7b64e6f422d8

Sencha Touch 2.1 - Getting started (working)

Sencha Touch - The real getting started guide

Download the tools

To get started, you need two things:

Do NOT attempt to use Sencha SDK Tools! It is doomed to fail.

Installation

Install Sencha CMD and unzip the SDK zip to some folder. I will refer to that folder as the SDKFOLDER

Now fire up a terminal and run

$ sencha

If no error is displayed: Well done!

Generate your first app

From wherever you are run the following in your terminal

$ sencha -s SDKFOLDER generate app TestApp /the/path/of-your/new-app/    

Now it should do a number of things and you should end up with a working Sencha Touch application project.

See it in action

To verify, run a webserver on the path you created the app in (e.g. /the/path/of-your/new-app) and access it via your browser.
For my example I would use pythons built-in web server like this:

$ python -m SimpleHTTPServer

and point my browser to http://localhost:8000/ to see the beautiful new app!

Say Thanks
Respond

2 Responses
Add your response

4588

Also check that Sencha Cmd is in your PATH:

for Mac

export PATH=/Users/<USERNAME>/bin/Sencha/Cmd/<SENCHA_CMD_VERSION>:$PATH
over 1 year ago ·
7843
415bc6871c2e3f6bd8f8bff33bc294b6

I wasted my 2 days googling arround and following different gurus;
but this post really helped me magically;So many many thanks to the Auther.

over 1 year ago ·