Building Riderr
Now that we have an understanding of the list of APIs, we will start working with the Ionic app.
Scaffolding the app
The next step in this chapter is to scaffold a new Ionic blank app and start integrating the Uber API with it.
Create a new folder named chapter7
, open a new command prompt/terminal inside the chapter7
folder, and run the following:
ionic start -a "Riderr" -i app.example.riderr riderr blank --v2
This will scaffold a new blank project.
Uber API service
In this section, we are going to start working with the service layer that interfaces with the Uber API. We will be implementing the aforementioned endpoints inside the Ionic app.
Once the app has been scaffolded, navigate into the src
folder and create a new folder named services
. Inside the services
folder, create a file named uber.service.ts
. We will be writing all the Uber integration logic here.
Open the riderr
project inside your favorite text editor and navigate to riderr/src/services/uber.service.ts
. The first...