Here's the complete README.md content - copy and paste it! 📄
# 🌦️ Weather App
A beautiful and responsive weather application that provides real-time weather information for any city in the world.
   
## ✨ Features
- 🔍 **Real-time Search** - Search weather by city name
- 🌡️ **Temperature Display** - Shows current temperature in Celsius
- 💧 **Humidity Level** - Displays current humidity percentage
- 💨 **Wind Speed** - Shows wind speed in km/h
- 🎨 **Dynamic Weather Icons** - Icons change based on weather conditions (Clouds, Clear, Rain, Drizzle, Mist)
- 📱 **Responsive Design** - Beautiful gradient UI that works on all devices
## 🚀 Demo
[Live Demo](https://karnemanideep.github.io/Weather-app/)
## 🛠️ Technologies Used
- **HTML5** - Structure
- **CSS3** - Styling with modern gradients and flexbox
- **JavaScript (ES6+)** - Async/await for API calls
- **OpenWeatherMap API** - Weather data provider
## 📋 Prerequisites
Before you begin, you'll need:
- A modern web browser (Chrome, Firefox, Safari, Edge)
- OpenWeatherMap API key (free tier available)
## ⚙️ Installation & Setup
1. **Clone the repository**
```bash
git clone https://github.com/karnemanideep/Weather-app.git
cd Weather-app-
Get your API Key
- Visit OpenWeatherMap
- Sign up for a free account
- Generate your API key
-
Add your API key
- Open
index.html - Replace the API key on line 42:
const apiKey = "YOUR_API_KEY_HERE";
- Open
-
Run the app
- Simply open
index.htmlin your browser - Or use a local server:
python -m http.server 8000
- Simply open
-
Access the app
- Navigate to
http://localhost:8000in your browser
- Navigate to
Weather-app/
│
├── WEATHER APP/
│ ├── images/
│ │ ├── search.png
│ │ ├── rain.png
│ │ ├── clouds.png
│ │ ├── clear.png
│ │ ├── drizzle.png
│ │ ├── mist.png
│ │ ├── humidity.png
│ │ └── wind.png
│ │
│ ├── index.html
│ ├── style.css
│ └── app.js
│
└── README.md
- User Input - Enter a city name in the search box
- API Call - App fetches weather data from OpenWeatherMap API
- Data Processing - JavaScript processes the JSON response
- Dynamic Update - UI updates with city name, temperature, humidity, wind speed, and weather icon
- ☁️ Clouds
- ☀️ Clear sky
- 🌧️ Rain
- 🌦️ Drizzle
- 🌫️ Mist
Modify the API URL to use Fahrenheit:
const apiUrl = "https://api.openweathermap.org/data/2.5/weather?units=imperial&q=";Edit style.css:
.card {
background: linear-gradient(135deg, #YOUR_COLOR_1, #YOUR_COLOR_2);
}- Add error handling for invalid city names
- Add loading spinner during API calls
- Implement 5-day forecast
- Add geolocation support
- Store recent searches in localStorage
- Add dark mode toggle
Contributions are welcome! Please feel free to submit a Pull Request.
Manideep Karne
- GitHub: @karnemanideep
- OpenWeatherMap API for weather data
- Built with ❤️ and lots of ☕
⭐ Star this repo if you found it helpful!
---
Copy ALL of this and paste it into the GitHub README editor! 🚀