Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying PhoneGap and AngularJS for Cross-platform Development
  • Table Of Contents Toc
PhoneGap and AngularJS for Cross-platform Development

PhoneGap and AngularJS for Cross-platform Development

By : Eugene Liang, Yuxian E Liang
2 (2)
close
close
PhoneGap and AngularJS for Cross-platform Development

PhoneGap and AngularJS for Cross-platform Development

2 (2)
By: Eugene Liang, Yuxian E Liang

Overview of this book

PhoneGap is a mobile development framework that allows developers to build cross-platform mobile applications. Building PhoneGap apps is traditionally done using HTML, CSS, jQuery Mobile, Eclipse Editor, and/or Xcode. The process can be cumbersome, from setting up your editor to optimizing your usage of jQuery, and so on. However, AngularJS, a new but highly popular JavaScript framework, eases these tasks with APIs to get access to mobile APIs such as notifications, geo-location, accelerometers, and more. Starting with the absolute basics of building an AngularJS application, this book will teach you how to quickly set up PhoneGap apps using the command-line interface. You will learn how to create simple to advanced to-do lists and add authentication capabilities using PhoneGap's plugins. You will enhance your skills by writing a PhoneGap app using your newly learned AngularJS skills. Furthermore, you will learn about adding animation and interactive designs to your mobile web apps using PhoneGap plugins. By the end of the book, you will know everything you need to launch your app on both Android and iOS devices.
Table of Contents (9 chapters)
close
close
8
Index

Deploying server.py

To deploy server.py, you will need access to an actual server. It can be rented from Amazon EC2, Linode, or DigitalOcean. The operation system I am using here is Ubuntu 12.04, although older variants of Ubuntu can work too, which include 10.04 and 11.04. Since the server is essentially a Tornado app, you will need to prepend sudo to every command that follows in this section, if you are not running it as root.

  1. To start off, you will need to put SSH into your server and start installing the required tools and dependencies:
    apt-get install python-setuptools
    easy_install pip
    pip install tornado
    
  2. You will also need to install MongoDB:
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
    
    echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
    
  3. Reload the local package database:
    apt-get update
    
  4. Install the MongoDB packages:
    apt-get install mongodb-org
    

    For the latest instructions...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
PhoneGap and AngularJS for Cross-platform Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon