codex-lv2-may-2025

🧪 Lesson 3: Build a Weather App with JavaScript Mini-Project

Tags: #lesson #level2 #javascript #weather Goal: Create a weather app using POJOs, helper functions, and Bootstrap cards. Level: Beginner web development Tools: VS Code, Git, web browser


📋 Lesson Overview

In this lesson, you’ll build a complete weather app that displays weather information for multiple cities. You’ll learn how to work with JavaScript objects, manipulate the DOM, and create a professional-looking interface using Bootstrap.

What you’ll build:


🚀 Lesson Steps

Core Steps (Required):

  1. Step 1: Create the Repository - Set up your Git repository and project structure
  2. Step 2: Set Up Project Files - Create the necessary files and include scripts
  3. Step 3: Copy Weather Data - Get weather data from previous lessons or download fresh data
  4. Step 4: Create POJO in script.js - Convert JSON data to JavaScript objects
  5. Step 5: Build the Weather Card - Create Bootstrap cards with span elements
  6. Step 6: Display Weather Data - Connect data to the user interface
  7. Step 7: Create Multi-City Weather Pages - Scale your app to multiple cities

Optional Challenges:

  1. Challenge Part 1: Add a Button - Make weather data appear only after button clicks
  2. Challenge Part 2: Second City Button - Add a second city button to the same page
  3. Challenge Part 3: Multiple City Buttons - Scale to multiple city buttons

🎯 Learning Objectives

By the end of this lesson, you will be able to:


🔗 Navigation


💡 Pro Tips


Ready to start? Begin with Step 1: Create the Repository