官术网_书友最值得收藏!

Configuring Sencha Touch

Sencha Touch is a JavaScript-based MVC framework used to build cross-platform mobile apps. It's a proprietary framework but free for open source projects, so we'll use it for our to-do app. To get and configure it, follow these instructions:

  1. First we will download Sencha Touch:
    1. Open https://www.sencha.com/products/touch/ in your browser.
    2. Click on DOWNLOAD FOR FREE.
    3. Fill out the contact form and click on DOWNLOAD TOUCH.
    4. Check your e-mail for a link to download Sencha Touch.
    5. In the e-mail, click on Download Sencha Touch.
    6. After the download is complete, extract the ZIP in its own folder.
    7. Open this folder (it should be named touch-2.4.1 or similar).
  2. Install Sencha Cmd:
    1. Open https://www.sencha.com/products/extjs/cmd-download/ in your browser.
    2. Click on DOWNLOAD WITHOUT JRE INCLUDED.
    3. Once the download is complete, run the setup application.
    4. Accept all defaults and click on Install.
    5. Once the installation is complete, click on Finish.
  3. Install Ruby:
    1. Mac OS X: Ruby is preinstalled. Verify this by running ruby -v on the command line.
    2. Windows: Open http://rubyinstaller.org in your browser. Click on Download. Choose a RubyInstallers for Ruby 2.1.6 or greater and click to download. Run the installer after the download is complete.
    3. Ubuntu: Run sudo apt-get install ruby2.0.0 to download and install Ruby. If on a different Linux distribution, use whatever native package manager comes with your operating system.
  4. Start the web server:
    1. Start the web server by running sencha web start on the command line.
    2. Open http://localhost:1841 in your web browser.
    3. If the installation has been completed successfully, you should see a page as follows:

      skeleton_application

    4. Stop the web server by typing ? + C in the command terminal window.

Now, Sencha Touch is running successfully on your system. Great! Next, we'll prepare a directory for your application, start developing the application itself, and commit it safely to GitHub.

主站蜘蛛池模板: 海门市| 城口县| 易门县| 海南省| 当涂县| 铁岭市| 无锡市| 白城市| 饶平县| 宝清县| 木兰县| 榆社县| 鄂温| 宁化县| 平陆县| 石门县| 元谋县| 安丘市| 红桥区| 疏附县| 禹城市| 吴桥县| 师宗县| 柏乡县| 彭泽县| 松原市| 商洛市| 会泽县| 彭泽县| 花垣县| 石楼县| 南汇区| 珠海市| 平乐县| 磐安县| 镇坪县| 牙克石市| 宜兰市| 延吉市| 类乌齐县| 江津市|