Skip to content

Responsive Weather App using WeatherAPI with live location, city search & dynamic backgrounds.

Notifications You must be signed in to change notification settings

Mayank181006/Weather-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌤 Weather App

A simple responsive Weather App built with HTML, CSS, and JavaScript.
It fetches live weather data from WeatherAPI.com and updates the UI dynamically based on the weather conditions.

✨ Features

  • 🌎 Detects user location and shows local weather
  • 🔍 Search weather by city name
  • 🌡 Displays temperature, humidity, wind speed, and more
  • 🎨 Dynamic background changes based on weather
  • 📱 Fully responsive for desktop, tablet, and mobile

📂 Project Structure

index.html   → Main UI
style.css    → Styling (responsive & dynamic backgrounds)
script.js    → Weather fetch & DOM updates

🛠 How to Run Locally

1️⃣ Clone the repo

git clone https://github.com/YOUR-USERNAME/weather-app.git
cd weather-app

2️⃣ Get a free Weather API key

3️⃣ Add your API key

  • Open script.js
  • Replace
const apiKey = "YOUR_API_KEY_HERE";

with your actual API key

4️⃣ Run the app

  • Open index.html directly in a browser
  • Or use VS Code Live Server for better experience

📸 Screenshots

Default Location

Searched Location

🔒 API Key Security

⚠️ This is a frontend-only project, so the API key will be visible in the browser.
For production use, create a backend proxy to hide it.


📜 License

This project is open-source and free to use for learning purposes.


🙌 Credits


If you like this project, give it a star on GitHub!

About

Responsive Weather App using WeatherAPI with live location, city search & dynamic backgrounds.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published