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

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
主站蜘蛛池模板: 贵阳市| 德清县| 乌鲁木齐县| 郁南县| 大化| 西吉县| 连云港市| 舟山市| 双牌县| 芜湖县| 景谷| 白山市| 平谷区| 芜湖县| 泰兴市| 望奎县| 晋城| 九江县| 历史| 杂多县| 马边| 邵东县| 潍坊市| 当涂县| 桃江县| 威远县| 咸阳市| 犍为县| 巴林左旗| 灵璧县| 莲花县| 广南县| 景谷| 定远县| 冷水江市| 弥勒县| 修武县| 巨野县| 乌审旗| 德安县| 宿州市|