This was an amazing project I had the opportunity to develop with other 3 friends from Trybe (Luiz Fernando, Luiz Gustavo mostly on design & Gabriel).
We used Trello (Kanban) to share 88 tasks between us and make this amazing Recipes React App Project.
The idea was to have a login and password as homepage. As soon as the user logs in (not connected to db yet), he'll be redirected to the meals page: PS: the email is checked using regex, so does the password. The password must be over 6 characters. Only then the login button is enabled.
When this happens, a localStorage is set up with the key "email" and value as the email the user entered.
The user have the ability to list by categories (top navigation bar) or search for a specific meal. In the footer, you have the option to switch over to cocktails recipes.
When a user clicks on any recipe, it creates a localStorage "inProgressRecipes" key and the value being
{cocktails: {}, meals: {}
and adds the recipe number (same as url) as value for either the cocktails OR meals key (depending which one the user's at).
In the example below, the user accessed the cocktail recipe number 17222
If he clicks on start recipe ("Iniciar Receita"), the ingredient steps changes to checkbox, and those are saved inside this localStorage object to keep the progress in case the user closes the app.
-
React
- React Router
- React Hooks
- React Context Api for state management
-
We used
fetch
method to call the API. -
The API used in this project was http://themealdb.com/, which is AMAZING!
-
Styling (mobile adapted) was made using pure CSS
- Clone or download the repository
- Install dependencies with
npm install
- Enter the project folder and run
npm start
- Visit
http://localhost:3000/
Thanks for visiting :)