Skip to main content
Top

2013 | Book

Pro iOS and Android Apps for Business

with jQuery Mobile, Node.js, and MongoDB

insite
SEARCH

About this book

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!

Table of Contents

Frontmatter

The Client

Frontmatter
Chapter 1. Designing My Mobile Organizer
Abstract
Designing a mobile app is no easy task! The wide variety of devices in the world makes it difficult to target them all effectively. Because of this, one of the more popular paradigms for mobilizing an app is to use the same technologies you build websites with: HTML5, JavaScript, and CSS. Doing so is, for most companies and developers nowadays, a good reuse of existing knowledge and skills. However, even after making the seemingly simple decision to follow that path, there are still a bewildering number of technology choices to be made.
Do you write all the code of the app running on the mobile device, or do you use a library to save you time? There are pluses and minuses to both answers. On the server, what technology do you use? Do you go with Java, PHP, or maybe Ruby on Rails?
Frank Zammetti
Chapter 2. Introducing jQuery and jQuery Mobile
Abstract
We’re building a handy little PIM in the form of a mobile web app. We know what the app is going to do and at least roughly what it will look like. We even have a good idea of what technologies we’re going to use to do it. Now where do we begin?
Frank Zammetti
Chapter 3. Writing the Application with jQuery Mobile, Part I
Abstract
Here we are, Chapter 3, and guess what? The preliminaries are out of the way, the setup is done, and now it’s time to jump into some real code!
Frank Zammetti
Chapter 4. Writing the Application with jQuery Mobile, Part II
Abstract
It used to be that “just a little HTML would do ya,” as the saying goes. So-called brochureware sites were all the rage, especially for companies taking their first tentative steps onto the fledgling Internet market. Nowadays, though, it’s not nearly enough! The Internet-using public, including you and me of course, demand more. They demand interaction. They demand movement. Most of all, they demand that a website, and certainly a web app, do more than just sit there and burn itself into the screen-reddened eyeballs of the user viewing them.
Frank Zammetti

The Server

Frontmatter
Chapter 5. Introducing Node.js
Abstract
With the client portion of My Mobile Organizer out of the way, it’s now time to turn our attention to writing the server-side component. We need a place to persist our data “in the cloud,” as it’s called these days, because storing it on the client isn’t the way to go if we want to share that data, something that My Mobile Organizer allows. (When data is stored on the cloud, of course, you can access it from multiple devices if you’re inclined to do so.)
Frank Zammetti
Chapter 6. Introducing MongoDB
Abstract
Data storage. Most apps need it, and My Mobile Organizer is no exception. We’re talking beyond the localStorage you saw in previous chapters. That covered the client-side offline data cache, but we need something more persistent on the server side as the authoritative data store.
Frank Zammetti
Chapter 7. Writing the Server with Node.js and MongoDB, Part I
Abstract
Are you ready to kick this pig? Over the past two chapters, you were introduced to Node.js and MongoDB, and you received the foundation of knowledge that you need to build My Mobile Organizer. Now it’s time to do just that!
Frank Zammetti
Chapter 8. Writing the Server with Node.js and MongoDB, Part II
Abstract
Building the server in Chapter 7 wasn’t too difficult, I’m sure you’ll agree, but it’s only half of the equation. Responding to requests properly is fine, but it doesn’t help us actually work with data—as you’ll recall, there was no code in the previous chapter that dealt with that.
Frank Zammetti

Putting It All Together

Frontmatter
Chapter 9. Introducing PhoneGap
Abstract
Now that My Mobile Organizer is complete—that is, both the client app and server-side API are in place—it’s time to talk about mobilizing this application.
Frank Zammetti
Chapter 10. The Final Build: Going Mobile with PhoneGap
Abstract
You know how in Star Wars, Episode VI: Return of the Jedi it all leads up to Luke’s final battle against Darth Vader in front of the Emperor? All of the training, all of the hardship, all of the kissing of sisters leads inexorably to that singular point? Well, here we are, light saber in hand, standing before the Emperor over Endor!
Frank Zammetti
Backmatter
Metadata
Title
Pro iOS and Android Apps for Business
Author
Frank Zammetti
Copyright Year
2013
Publisher
Apress
Electronic ISBN
978-1-4302-6071-4
Print ISBN
978-1-4302-6070-7
DOI
https://doi.org/10.1007/978-1-4302-6071-4

Premium Partner