A simple and user-friendly web application that displays current weather information for any city worldwide. Powered by OpenWeatherMap API.
- Search for weather by city name
- Displays current temperature, weather condition, humidity, and wind speed
- Clean and responsive UI
- Error handling for invalid locations
- (Optional) 5-day forecast
- Node.js (if using React, Vue, or similar frameworks)
- An API key from OpenWeatherMap
-
Clone the repository:
git clone https://github.com/brukcodes/weather-app.git cd weather-app -
Install dependencies:
npm install
-
Create a
.envfile in the root directory and add your OpenWeatherMap API key:REACT_APP_WEATHER_API_KEY=ccbdda41acb9d9b1153c0e456cec4bb7 ``` -
Start the application:
npm start
-
Visit
http://localhost:3000in your browser.
- Enter the name of a city in the search bar.
- Press "Search" or hit Enter.
- View the current weather details and forecast.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.
- OpenWeatherMap
- Unsplash for any background images