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

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.

主站蜘蛛池模板: 青铜峡市| 泰兴市| 芦山县| 酒泉市| 淳安县| 姚安县| 平和县| 遂川县| 杭州市| 通州市| 泰安市| 平南县| 岳阳县| 兰溪市| 津南区| 灌阳县| 息烽县| 攀枝花市| 镇雄县| 洛隆县| 伊吾县| 大英县| 乐业县| 崇明县| 城口县| 都安| 山丹县| 肇庆市| 玉田县| 巢湖市| 蓬安县| 唐山市| 栖霞市| 华亭县| 靖宇县| 浦江县| 旬邑县| 新民市| 米易县| 遂昌县| 彰化市|