Overview
A brief overview of the Food API app that uses a web API to return recipes.
We'll cover the following
The use of APIs
As Ionic developers, we need to be familiar and comfortable consuming APIs within our applications, as there will be many times when a client expects us to be able to implement in-house or third-party API services.
What will we develop in this case study?
For this case study, we’re going to integrate the spoonacular API into an Ionic project to tap into an online repository of recipe data and consume that within our app. After all, who doesn’t like consuming good food?
We’ll use the spoonacular API to allow the user to perform the following:
- Search for recipes based on the type of vitamin, minimum value of the selected vitamin, and the maximum number of results to display
- Return random recipes
Our application will use selected Ionic UI components, Angular’s reactive forms module, Angular’s HttpClient
module, Observables, specific utility methods from the RxJS library, and, of course, the spoonacular API.
We’ll also be making use of services and environment variables for better management of data and to make our codebase more optimized. For example, we can centralize key logic, which can be shared across further page components that may be added in the future and store globally accessible properties in one location.
By the end of the case study, we should have successfully created the following app:
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy