Chapter 2 - Create Ionic Application

In the last chapter, we learned how to install Ionic. In this chapter, we will learn how to create a new Ionic application.

1. Create new Ionic project

Open command prompt/terminal at the directory where you want to create the app, then run:

1
$ ionic start "my-app" blank

It is going to create a folder called “my-app” with essential files and then install all the essential packages. This process will take several minutes.

2. Run the app in browser

After everything is done, cd into the folder:

1
$ cd my-app

Then run the app:

1
$ ionic serve

It will start up the app in your browser. This process will also takes several minutes. Now you have your first app running!


Next Chapter

In the next chapter, we will learn how to add a new page to our app.