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

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
主站蜘蛛池模板: 龙里县| 台湾省| 金堂县| 璧山县| 西充县| 观塘区| 大化| 天峨县| 定日县| 九龙县| 陆河县| 乐平市| 嘉兴市| 安新县| 清原| 永德县| 邵阳市| 沐川县| 高碑店市| 丁青县| 井冈山市| 饶河县| 施秉县| 财经| 五莲县| 台北市| 定襄县| 黑龙江省| 仲巴县| 西安市| 和龙市| 和林格尔县| 望城县| 神木县| 乾安县| 凤城市| 辉南县| 上犹县| 内乡县| 南雄市| 灌阳县|