Book Image

Offline First Web Development

By : Daniel Sauble
Book Image

Offline First Web Development

By: Daniel Sauble

Overview of this book

When building mobile apps, it’s easy to forget about the moments when your users lack a good Internet connection. Put your phone in airplane mode, open a few popular apps, and you’ll quickly see how they handle being offline. From Twitter to Pinterest to Apple Maps, some apps might handle being offline better—but very few do it well. A poor offline experience will result in frustrated users who will abandon your app, or worse, turn to your competitor’s apps Expert or novice, this book will teach you everything you need to know about designing and building a rigorous offline app experience. By putting the offline experience first, you’ll have a solid foundation to build upon, avoiding the unnecessary stress and frustration of trying to retrofit offline capabilities into your finished app. This basic principle, designing for the worst-case scenario, could save you countless hours of wasted effort.
Table of Contents (17 chapters)
Offline First Web Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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...