This is a simple web application built with HTML, Tailwind CSS, JavaScript, and jQuery. The application fetches and displays data from TheMealDB API. It includes three main pages:
- Category Page: Displays a list of meal categories.
- Category Detail Page: Displays a list of meals under a selected category.
- Meal Detail Page: Displays detailed information about a specific meal, including instructions, ingredients, and an embedded YouTube tutorial.
You can see the project in action at: Live Demo Link
- Fetches and displays data from TheMealDB API
- Modularized JavaScript for easier maintenance
- Responsive design with Tailwind CSS
- Displays meal categories, meal details, and recipe instructions
To run the project locally, follow these steps:
git clone https://github.com/Doniwyk/cmlabs-frontend-internship-test.git
Open
index.html
Open index.html in your browser to see the list of meal categories.
Click on any category to navigate to categoryDetail.html, where you will see the list of meals under that category.
Click on any meal to navigate to mealDetail.html, where you will see detailed information about that meal, including an image, instructions, ingredients, and an embedded YouTube video if available.
This project uses three endpoints from TheMealDB API:
-
List of Categories:
URL: https://www.themealdb.com/api/json/v1/1/categories.php -
Filter by Category:
URL: https://www.themealdb.com/api/json/v1/1/filter.php?c={category-name} -
Meal Detail (optional):
URL: https://www.themealdb.com/api/json/v1/1/lookup.php?i={meal-id}