In this project we built a react/redux weather app that allows you to see different forecast information for a given city, and set favorite cities to pin to the home page, including by city name and zipcode any where in the world.
This project template was built with Create React App.
- Retrieve and display forecast data from the OpenWeatherMap API
- Use the Geolocation API to determine the weather in your current city
- Save “pinned” or favorite cities to display their extended weather forecasts
We used the OpenWeatherMap API to retrieve weather data. A Note about using the live version:
Since the OpenWeatherMap API does not use security precaution, it has disabled cross-origin resource sharing (CORS) on their servers. When testing this app, it is necessary to allow your browser to load "unsafe scripts" in order to render fresh weather information and current weather data. Setting up and enabling CORS for this app was beyond the time scope for this particular project.
Visit the Weather Tracker App to view it in the browser.