Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
PhoneGap 4 Mobile Application Development Cookbook

You're reading from   PhoneGap 4 Mobile Application Development Cookbook Build real-world hybrid mobile applications using the robust PhoneGap development platform

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781783287949
Length 356 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Welcome to PhoneGap 3 FREE CHAPTER 2. Movement and Location – Using the Accelerometer and Geolocation Sensors 3. Filesystems, Storage, and Local Databases 4. Working with Audio, Images, and Video 5. Working with Your Contacts List 6. Hooking into Native Events 7. Working with XUI 8. Working with the Ionic Framework 9. Ionic Framework Development 10. User Interface Development 11. Extending PhoneGap with Plugins 12. Development Tools and Testing Index

Getting familiar with basics of the library


There are several ways to get started using Ionic Framework. The easiest way is to utilize Ionic CLI, which is an NPM package. NPM is a dependency manager for Node.js.

How to do it...

Perform the following steps to get started with Ionic framework:

  1. Install Ionic CLI by running the following command in the terminal. You may need super user access:

    npm install -g cordova ionic
    
  2. If somehow Ionic is not installed, you may require root access:

    sudo npm install -g cordova ionic
    
  3. Check your installation by running the following command:

    ionic -v
    

    If you see following output, Ionic has been installed on your machine:

  4. Create a new Ionic app project by using a readymade template:

    ionic start myapp tabs
    
  5. Run the project by using the following command; you can change ios to android if you want to emulate on Android instead:

    cd myapp
    ionic platform add ios
    ionic build ios
    ionic emulate ios
    
  6. Your Ionic app is running on the emulator:

Congratulations! You have successfully...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image