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 now! 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
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Ionic

You're reading from   Learning Ionic Discover a simpler approach to modern mobile application development with Ionic framework and learn how to create elegant hybrid apps with HTML5 and AngularJS

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher
ISBN-13 9781783552603
Length 388 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Arvind Ravulavaru Arvind Ravulavaru
Author Profile Icon Arvind Ravulavaru
Arvind Ravulavaru
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Ionic – Powered by AngularJS FREE CHAPTER 2. Welcome to Ionic 3. Ionic CSS Components and Navigation 4. Ionic and SCSS 5. Ionic Directives and Services 6. Building a Bookstore App 7. Cordova and ngCordova 8. Building a Messaging App 9. Releasing the Ionic App A. Additional Topics and Tips Index

Building the application


Now that we have our server set up and have an idea as to what we are going to build, let's start building it. We are going to perform the following steps, for us to easily build the app:

  1. Scaffold the side menu template.

  2. Refactor the template.

  3. Build the authentication, local storage and REST API Factories.

  4. Create controllers for each route and integrate them with the corresponding Factories.

  5. Create templates and integrate with the Controller data.

Step 1 – Scaffolding the side menu template

The first thing we are going to do is scaffold a side menu template. Create a folder named chapter6. Open a terminal/prompt inside the chapter6 folder and run this:

ionic start -a "Ionic Book Store" -i app.bookstore.ionic book-store sidemenu

This will scaffold the side menu application. We will not be using theming in our Bookstore app, so there will be no SCSS setup.

Step 2 – Refactoring the template

In all the examples we have built so far, we have created components from scratch. But...

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