You are previewing Pro iOS and Android Apps for Business: with jQuery Mobile, node.js, and MongoDB.
O'Reilly logo
Pro iOS and Android Apps for Business: with jQuery Mobile, node.js, and MongoDB

Book Description

With Pro iOS and Android Apps for Business, you can take your web development experience and apply it toward creating a full-featured business app, from soup to nuts. Frank Zammetti shows you how to create a client app using jQuery Mobile wrapped in PhoneGap, and how to create a node.js-based server that uses MongoDB as its data store.

You never have to deal with learning Objective-C, Java or any other difficult-to-learn language. Instead, you can build on your existing HTML5, JavaScript and CSS experience to quickly and effectively build any app your business needs. You can apply this knowledge to iOS and Android apps as well as other mobile platforms since the technologies used support most modern mobile platforms as well.

You'll learn:

  • How to design a full-featured app, including requirements like offline access

  • How to build the client-side of the app using jQuery Mobile, including adding stub code for calling the node.js server

  • How to create a simple server with node.js and interact with it using REST

  • How to use MongoDB with node.js for data storage

  • How to use PhoneGap to ready your app for mobile deployment

  • How to test and debug your app on iOS and Android

Pro iOS and Android Apps for Business is for experienced web developers who need to get up to speed quickly in building iOS and Android apps for business. Are you ready to join the mobile revolution using the same technologies you already use to build great web applications? If so, this is the book for you!

What you'll learn

  • How to design a full-featured app, including requirements like offline access

  • How to build the client-side of the app using jQuery Mobile, including adding stub code for calling the node.js server

  • How to create a simple server with node.js and interact with it using REST

  • How to use MongoDB with node.js for data storage

  • How to use PhoneGap to ready your app for mobile deployment

  • How to test and debug your app on iOS and Android

Who this book is for

Experienced web devs who need to get up to speed quickly in building iOS and Android apps for business. HTML/CSS/JavaScript experience highly recommended.

Table of Contents

  1. Title Page
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. About the Author
  6. About the Technical Reviewers
  7. Acknowledgments
  8. Introduction
  9. Part 1: The Client
    1. Chapter 1: Designing My Mobile Organizer
      1. The Need for Organization
      2. A PIM for All Seasons
      3. Technology Decisions
      4. Finally, We Have It: The Full-Stack
      5. Summary
    2. Chapter 2: Introducing jQuery and jQuery Mobile
      1. It’s All About the DOM
      2. jQuery Saves Your Brain from the DOM
      3. Effects Aren’t Just for Movies
      4. Stuff Happens: Events
      5. Working with Forms
      6. Working with CSS
      7. Miscellaneous Niceties
      8. jQuery Isn’t UI per se—jQuery Mobile Is!
      9. Unobtrusiveness and Progressive Enhancement Is Where It’s At
      10. The Page Paradigm
      11. Theme Support
      12. A Rich Set of Widgets
      13. Summary
    3. Chapter 3: Writing the Application with jQuery Mobile, Part I
      1. First Steps
      2. index.html
      3. Appointment Page
      4. Contact Page
      5. Note Page
      6. Task Page
      7. Summary
    4. Chapter 4: Writing the Application with jQuery Mobile, Part II
      1. Some Global Variables to Kick Things Off
      2. Start Here: The mobileinit Event Handler
      3. No Wait, Start Here: The ready Event Handler
      4. When Networks Fail: Showing a Message When No Connectivity Is Available
      5. Poor Man’s Synchronization: Downloading Data from the Server
      6. Keep It Local: Getting Data from Local Storage
      7. A List Above: Showing a List View
      8. Saving Is Good: The doSave() Function
      9. A Form in Sheep’s Clothing: Getting a Form’s Data as JSON
      10. Everyone Needs Validation: Validating a Form Before Saving
      11. When You Gotta Go: The doDelete() Function
      12. Your Page Is Showing: The pageShowHandler() Function
      13. An Empty List Is a Dull List: The populateList() Function
      14. Time to Create: The New Menu Item Handler
      15. Change Is Inevitable: Editing an Existing Item
      16. Clear Your Mind: The clearData() Function
      17. A Needed Utility: Checking Whether a Form Field Is Empty
      18. Summary
  10. Part 2: The Server
    1. Chapter 5: Introducing Node.js
      1. Writing Servers Is Hard
      2. Node.js (and JavaScript) to the Rescue!
      3. Getting and Installing Node.js
      4. My First Node.js Server
      5. Asynchronous, Nonblocking, Event-Driven Programming Is King
      6. The Core API
      7. Extensibility via Packages and Package Manager
      8. Summary
    2. Chapter 6: Introducing MongoDB
      1. NoSQL: Or, How I Learned to Stop Worrying and Love Flexibility
      2. One Contender Among Many: MongoDB
      3. MongoDB in the World of Node.js: Mongoose
      4. Summary
    3. Chapter 7: Writing the Server with Node.js and MongoDB, Part I
      1. The World of REST
      2. Code Preliminaries
      3. Kicking It Off
      4. Core Server Processing, Part I
      5. Core Server Processing, Part II
      6. Completing Responses
      7. Mocking Testing from the Command Line
      8. Summary
    4. Chapter 8: Writing the Server with Node.js and MongoDB, Part II
      1. A Data Access Object for All Seasons
      2. Object Creation: POST Requests
      3. Object Retrieval: GET Requests
      4. Object Retrieval Redux: Get All Requests
      5. Object Updates: PUT Requests
      6. Object Deletion: DELETE Requests
      7. The Special Case: Clearing All Data
      8. Don’t Forget Those Exports!
      9. Summary
  11. Part 3: Putting It All Together
    1. Chapter 9: Introducing PhoneGap
      1. The Problems with Mobile Development
      2. The “Native Experience,” Courtesy of PhoneGap
      3. Getting PhoneGap and Writing a Simple App
      4. Here Comes the APIs
      5. Summary
    2. Chapter 10: The Final Build: Going Mobile with PhoneGap
      1. Get Ready: Signing Up
      2. Get Set: The Configuration File
      3. Go: Starting the Build
      4. Crossing the Finish Line: The Output Files
      5. Getting Files Onto Your Device
      6. Augmentation: Adding Some PhoneGap API Goodness
      7. When Things Go Wrong: Debugging
      8. The Final Step: Distributing Your Application
      9. Summary
  12. Index