Best matchWeather App
Request current weather data and display the response clearly.
Build a weather app →Build a recipe book app with HTML, CSS, and JavaScript while practicing API requests and async and await.
In this project, we’re going to build a recipe book app using HTML, CSS, and JavaScript. You’ll see how to fetch recipe data and create useful recipe cards from the response. Along the way, you’ll practice API requests, async and await, and DOM selection, so you can understand how the interface and JavaScript logic work together.
Recommended knowledge: Basic HTML and CSS, JavaScript functions and arrays, Promises and the Fetch API, JavaScript arrays and array methods.
This project connects the interface to live API results.
index.html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1>Recipe Book App</h1>
</header>
<div class="container">
<ul id="recipe-list" class="recipe-list">
<!-- <li class="recipe-item">
<img
src="https://spoonacular.com/recipeImages/12345-312x231.jpg"
alt="Recipe 1"
/>
<h2>Recipe 1</h2>
<p>
<strong>Ingredients:</strong> Ingredient 1, Ingredient 2, Ingredient
3
</p>
<a href="#">View Recipe</a>
</li>
<li class="recipe-item">
<img
src="https://spoonacular.com/recipeImages/12545-312x231.jpg"
alt="Recipe 2"
/>
<h2>Recipe 2</h2>
<p>
<strong>Ingredients:</strong> Ingredient 1, Ingredient 2, Ingredient
3
</p>
<a href="#">View Recipe</a>
</li>
<li class="recipe-item">
<img
src="https://spoonacular.com/recipeImages/12445-312x231.jpg"
alt="Recipe 3"
/>
<h2>Recipe 3</h2>
<p>
<strong>Ingredients:</strong> Ingredient 1, Ingredient 2, Ingredient
3
</p>
<a href="#">View Recipe</a>
</li> -->
</ul>
</div>
<script src="index.js"></script>
</body>
</html>
Practice API requests, async/await, and array methods with these related projects.
Best matchRequest current weather data and display the response clearly.
Build a weather app →
Turn a search term into a gallery of API results.
Build an image search app →
Request remote photos and arrange the results into a gallery.
Build a photo gallery →
Request current weather data and display the response clearly.
Build a weather app
Turn a search term into a gallery of API results.
Build an image search app
Request remote photos and arrange the results into a gallery.
Build a photo gallery