Create a Hybrid project using Sencha Touch: (1) Sencha Touch Environment

1. Environment:

  1. Computer environment: ubuntu kylin 15.04

  2. jre, version 1.7

  3. explorer,chrome

  4. ruby:2.1,sudo apt-get install ruby2.1

  5. touch framework: http://cdn.sencha.com/touch/sencha-touch-2.2.1-gpl.zip

  6. sencha touch cmd: http://cdn.sencha.com/cmd/6.0.2/no-jre/SenchaCmd-6.0.2-linux-amd64.sh.zip

    li>

  7. touch doc:http://cdn.sencha.com/downloads/docs/touch-docs-2.2.1.zip

Two , Configure environment variables:

The environment variable configuration on ubuntu is different from that on windows, mainly the configuration of jre, ruby, sencha cmd, because we have been developing, so jre has been configured, ruby ​​is directly commanded :Sudo apt-get install ruby2.1 is configured, mainly the configuration of environment variables of sencha cmd:

/etc/profile, edit with vi or gedit, add at the end Previous paragraph:

#senchaexportSENCHA_HOME=/home/your_pc_name/software/SenchaCmd/6.0.2.14exportPATH= $SENCHA_HOME:$PATH

Configure the environment variables and remember to verify:

1.jre,

~$ja va -versionjava version "1.7.0" Java(TM) SE Runtime Environment (build 1.7.0-b147) Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

2.ruby

~$ ruby-vruby 2.1.2p95 (2014-05-08) [x86_64-linux-gnu] 

3.sencha

senchaSencha Cmd v6.0.2.14Sencha Cmd provides several categories of commands and some global switches. Inmost cases, the first step is to generate an application based on a Sencha SDKsuch as Ext JS or Sencha Touch: sencha -sdk /path/to/sdk generate app MyApp /path/to/myC4.1 1a and higher and Sencha Touch 2.1 and higher. To get help on commands use the help command: sencha help generate appFor more information on using Sencha Cmd, consult the guides found/Options here: http://cm.sencha.com *--Beta, -be-Enable beta package repositories*--cwd, -cw-Sets the directory from which com mands should execute*--debug, -d- Sets log level to higher verbosity*--info, -i-Sets log level to default*--nologo, -n-Suppress the initial*plain, display, -pl-enables plain logging output (no highlighting) * -quiet, -q-Sets log level to warnings and errors only *-sdk-path, -sd-The location of the SDK to use for non-app commands --strict, -st-Treats warnings as errors, exiting with error if any warnings are present* --time, -ti-Display the execution time after executing all commandsCategories*app-Performcompass-application*build process of execution* compass for sasscompilation*compile-Compilesources to produceconcatenated output and metadata . Or an entire application* manager- Commands for interacting wit h Sencha Web Application Manager. Manifest-Extract class metadata * package-Manages local and remote packages-Quick init support for PhoneGap repository and repository-Manage for repository-Tempory-local-repository-repository for low-level operations on themes * web-Manages a simple HTTP file serverCommands * ant-Invoke Ant with helpful properties back to Sencha Cmd * build* audit-Search from the framework project* from the current framework* Ext JS build re-folder from a legacy JSB3 file. * config-Load a properties file or sets a configuration property * help-Displays help for commands * js-Executes arbitrary JavaScript file (s) * C grades *switch m-Manage * C grade Upgrade-switch m-Manage * Which-Displays the path to the current version of Sencha Cmd

At this point, the Sencha Touch environment is completely set up, and of course the web server must be configured. This will continue in the creation of the app in the next section p>

Leave a Comment

Your email address will not be published.