A simple weather app built with React. Search a city and it shows the current temperature, humidity, wind speed, and a matching weather icon. Data comes from the OpenWeatherMap API.
Bootstrapped with Create React App.
npm install
You'll need an API key from OpenWeatherMap. Put it in a .env file at the project root:
REACT_APP_WEATHER_API_KEY=your_key_here
Then update src/Components/weatherapp/WeatherApp.jsx to read it from process.env.REACT_APP_WEATHER_API_KEY instead of the hardcoded value.
npm start
Opens at http://localhost:3000.
npm run build
Outputs a production build to build/.
Temperature is shown in Fahrenheit and wind speed in mph (the API call uses units=imperial). Change that in the fetch URL if you want metric.