Video by OnlineITtuts Tutorials · streamed from YouTube. All rights remain with the creator.
Lesson 1: A Weather App with React and APIs
About this lesson
This project tutorial from OnlineITtuts Tutorials builds a weather forecast app with React, step by step from an empty project to a finished application. The app is driven entirely by live data: it uses the OpenWeather API to get the current weather and forecast for a place and then displays that information inside the application in a clear, attractive layout. Because the whole project is built from scratch, it is a practical way to see how a React application is organised and how it talks to an external service. You learn how to set up the project, divide the interface into components and connect them so that data flows from where it is fetched to where it is shown. A central theme is working with an API: obtaining a key, building requests, receiving the response and picking out the values the app needs, such as the temperature and the weather conditions, before presenting them to the user. The tutorial also shows how to handle the user's input so that the app can look up the weather for different places, and how to arrange and style the results so that the app looks polished on screen. By the end, you have a complete, working weather app built with React and real data, along with a better understanding of how API-based projects are structured. The project is a good next step after learning the basics of React. Afterwards, read Chapter 1 of the course book, which converts units and times and summarises a day of forecasts by hand.