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

Chapter 2. Setting Up a Project Structure with Sencha Touch

The biggest misunderstanding with PhoneGap is that it does everything for you.

However, that's not the case. It is just the base for your application. It helps you package your app and access device features, such as the camera. There is nothing in PhoneGap that helps you to organize your app in terms of, for example, MVC. It's not an application framework. You need more. You need help from the PhoneGap ecosystem. By ecosystem, I mean everything that helps us build mobile-ready websites.

You need to spend a lot of time building an app that feels and looks native. It's the details that eat up your budget. Again, it's not PhoneGap's fault. Surely, JavaScript will perform faster on more modern devices soon. Surely, PhoneGap will remain a great service. However, we now need other great tools that can be used with PhoneGap to make HTML5/JS on mobile devices a success.

In this chapter, we will build a foundation of our Travelly application using PhoneGap and Sencha Touch.

This chapter will cover the following topics:

  • Sencha Touch and the issues it solves
  • Offline first approach
  • Installing Sencha Touch
  • Installing the Sencha Touch command-line tool
  • Setting up a project via the command-line tool
  • The Model–View–Controller–Store pattern
主站蜘蛛池模板: 汾阳市| 阿克苏市| 固安县| 深泽县| 汕头市| 甘谷县| 弋阳县| 定安县| 刚察县| 广平县| 汉寿县| 竹北市| 汪清县| 金坛市| 郯城县| 海兴县| 奉新县| 惠州市| 石渠县| 怀化市| 平果县| 思南县| 旬阳县| 砚山县| 永丰县| 溧水县| 昆山市| 阜城县| 义乌市| 峨山| 宁夏| 武宁县| 横峰县| 涞源县| 雷州市| 新平| 新沂市| 周至县| 溧阳市| 湘乡市| 洛隆县|