- Sencha Touch SDK Tools installed
- Sencha Touch SDK downloaded and extracted
I'm also assuming that your folder structure looks like:
- <UserDir>
- SenchaTouch2
- sdk
- <sencha touch sdk contents>
- projects
- <we will create all new projects in this folder>
Create a new SenchaTouch Project
- open a terminal and switch to the sdk folder
- create a new app in the projects folder with the sencha command
cd ~/SenchaTouch2/sdk
sencha app create SenchaApp ~/SenchaTouch2/projects/SenchaApp
Test your Application with the Apache Webserver
- go to the apache server directory
- add write permissions to the apache config file
- open the apache config with the nano editor
- add the following folder alias at the end of the config file (change <username> to your username)
- start the apache webserver - goto System Preferencences -> Sharing and activate "Web Sharing"
- open a chrome/safari browser and go to the url http://localhost/st2/SenchaApp/
- now you should see your new application running in the browser
cd /etc/apache
sudo chmod +r httpd.conf
sudo nano httpd.conf
Alias /st2 /Users/<username>/SenchaTouch2/projects
<Directory "/Users/<username>/SenchaTouch2/projects">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Test your Application with a Python Webserver
- go to directory of your new sencha application
- start a simple python http server
- open chrome/safari and go to the url http://localhost:8000
- now you should see your new application running in the browser
cd ~/SenchaTouch2/projects/SenchaApp
python -m SimpleHTTPServer 8000