Book Image

PhoneGap By Example

Book Image

PhoneGap By Example

Overview of this book

Table of Contents (17 chapters)
PhoneGap By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Generating the application


Let's try some of the Sencha Cmd features and generate the Travelly application. First of all, we should change our current directory to Sencha Touch SDK and run the Sencha generate command there:

$ cd /Development/touch-2.4.1
$ sencha generate app Travelly ~/Projects/phonegap-by-example/sencha-travelly

The same result can be achieved without changing the directory to the SDK, but passing an additional argument within the command:

$ sencha -sdk /Development/touch-2.4.1 generate app Travelly ~/Projects/phonegap-by-example/sencha-travelly

Where:

  • /Development/touch-2.4.1 is the directory where you unzipped the Touch SDK

  • The generate command is used to generate the appropriate part of the application; in our case, it is entire application

  • Travelly is the name of our application

  • ~/Projects/phonegap-by-example/sencha-travelly is the path where we want our application to be generated

There is a new sencha-travelly folder created with the following file structure:

├── app...