This is a weather app made with React that retrieves current weather data from the OpenWeatherMap API and displays it for a given city. It also has a text-to-speech feature that allows users to hear the current weather for the selected city.
To install and run the app locally:
- Clone the repository:
git clone https://github.com/Alex-003/weather-app.git
- Install dependencies:
npm install
- Set up an account on OpenWeatherMap and get an API key.
- In the
App.js
file, replace theAPI_KEY
variable with your own API key. - Run the app:
npm start
- Enter a city name in the search bar.
- The current weather and city name will be displayed on the screen.
- Press the "Speak to listen" button to hear the weather forecast for the selected city.
- React
- OpenWeatherMap API
- SpeechSynthesisUtterance API
- HTML/CSS
- Jest/Babel
- The OpenWeatherMap API for providing the weather data.
- The React documentation for guidance on building a React app.
- The MDN Web Docs for information on the Web Speech API.