Defining the requirement
First, let's define the requirement we are going to fulfill in a reactive way. To define the requirement properly, we should answer this question: what do we want to do? Or, in other words, how should the application behave? Well, we want to display a list of recipes on the home page.
The component responsible for displaying the list of recipes is RecipesListComponent
. So, we will display this component on the home page. We are going to progressively build the user story detailed in View one – the landing page section of Chapter 3, A Walkthrough of the Application.
Of course, we need to retrieve the list of recipes beforehand in order to display it to the user, right? So, the list of recipes represents the first Data that we need to request. This is available on a remote RESTful server. We are going to use a GET
request and call the /api/recipes
REST endpoint implemented in our recipes-book-api
backend, which we started in the Technical...