O'Reilly logo

PhoneGap By Example by Andrey Kovalenko

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required