This project was made for learning purposes only. It's main goal is to exercise the following aspects:
- Simple API use;
- Limiting HTTP Requests through Deboucing;
- ReactJS' useState and useEffect;
- UI and UX;
Run npm start
to start the app in development mode.
To view the app running, open http://localhost:3000 in your browser.
The route used in this project to search the meals is: www.themealdb.com/api/json/v1/1/search.php?s=<mealName>
.
<mealName>
: The meal desired to search.
The debounce
function prevents the user from making a request before a certain time has passed since the last word was typed, capping the amount of requests made by the user.
If the meal searched does not match with any meal listed in the database, it will be shown "Nothing found"
and an icon of a sad face.
The project's design was made first in Figma and then later some ajustments were made manually.