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

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.

主站蜘蛛池模板: 玉树县| 庆元县| 兴海县| 克什克腾旗| 玉环县| 缙云县| 山丹县| 都昌县| 吉林市| 和政县| 莱阳市| 巩留县| 东兰县| 临朐县| 都江堰市| 平塘县| 读书| 桂东县| 玛多县| 温泉县| 定襄县| 柳林县| 油尖旺区| 黑龙江省| 禹州市| 海阳市| 湖州市| 阜城县| 宜兴市| 讷河市| 平山县| 永昌县| 延长县| 米易县| 台安县| 屯留县| 永靖县| 霍州市| 淳化县| 万载县| 平罗县|