Chapter 3. Creating Cordova projects
This chapter covers
- Creating Cordova projects from the CLI
- Adding platform support
- Working with Android emulators and devices
- Sending your project to an emulator or device
Now that you’ve got your local environment running, it’s time to look closer at what makes up a Cordova project. At the end of chapter 2, you created a project just for testing purposes; let’s cover how projects are created with a bit more detail, and then examine what’s created in the filesystem. We’ll also walk through setting up an Android emulator and detail how to send an application to it or a real device. Finally, you’ll build a real (although rather simple) application.
Let’s start by looking at the typical process flow of working with Cordova. Figure 3.1 demonstrates the steps you’ll follow when working on a Cordova project.
In chapter 2 you used the following command to create a project: