Building the app

Now that we have an idea as to what we are going to build, let us get started. Create a folder named chapter8 and open a new command prompt/terminal inside the chapter8 folder and run:

ionic start -a "TodoApp-v1" -i app.example.todoapp_v1 todoapp_v1  blank

We are scaffolding a blank project using Ionic v1. Do notice that we are not using the --v2 flag. Once the project is scaffolded, open it in your favorite text editor.

Before we start working on the two pages, we are going to create the required services. We are going to create five services:

  • LocalStorage Service: To interact with LocalStorage
  • LocalNotification Service: To interact with $cordovaLocalNotification
  • IP Service: To interact with https://api.ipify.org
  • Auth ...

Get Learning Ionic - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.