This is a simple Recipe App that fetches recipes from an API, displays them, and allows users to search, filter, and view detailed information about each recipe.
- Fetches and displays recipes from DummyJSON API
- Search functionality to find recipes by name
- Filter recipes based on meal types (Breakfast, Lunch, etc.)
- Pagination (Load More) to fetch more recipes dynamically
- View details of a specific recipe, including ingredients and instructions
- Back(Close) button to return to the main list
- HTML, CSS, JavaScript for frontend
- Fetch API for handling API requests
This project uses the DummyJSON API:
- API Endpoint:
https://dummyjson.com/recipes
- Search Recipes: Type a recipe name in the search bar.
- Filter Recipes: Click on a meal type to filter recipes.
- View Details: Click on a recipe to see its ingredients and instructions.
- Load More Recipes: Click "Load More" to fetch more recipes.
- Close Recipe Details: Click the X button to return to the main list.
- If the API request fails, the app will display an error message.
- If search results are empty, it shows no results found.