Sencha

From eBabel wiki
Jump to: navigation, search

Create a new app

mkdir /path/to/www/myapp
sencha -sdk /path/to/sencha-touch-2-sdk generate app MyApp /path/to/www/myapp

For example, on my iMac, for Sencha Touch:

mkdir ~/Sites/ControllersTutorial1
sencha -sdk ~/Sites/touch-2.2.1/ generate app ControllersTutorial1 ~/Sites/ControllersTutorial1

or for Ext JS

sencha -sdk ~/Sites/ext-4.2.1.883/ generate app ControllersTutorial1 ~/Sites/ControllersTutorial1

Add to git repository

Note: to push this git repository to Github, create it on Github first then follow these steps:

cd ~/Sites/ControllersTutorial1/
touch README.md
vi README.md

In README.md, write a short description of the repository code purpose.

git init
git add *
git add .sencha/
touch .gitignore
vi .gitignore

In .gitignore, place the following rules:

# Intellij project files
*.iml
*.ipr
*.iws
.idea/

Then go back to Terminal main command prompt:

git commit -m "ADDED new app files generated by Sencha Cmd."
git remote add origin https://github.com/ebabel-eu/controllers-tutorial1.git
git push origin master

Useful links