Skip to content

The Weather App is a simple and user-friendly web application that provides real-time weather updates and a 5-day forecast for any city worldwide. Users can search for weather data by entering a city name or use their current location to fetch weather details.This app is built using HTML, CSS (Tailwind CSS) and JavaScript .

Notifications You must be signed in to change notification settings

sharmaHarshit2000/Weather-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌤️ Weather App

A responsive weather dashboard built with HTML, Tailwind CSS, and vanilla JavaScript.
It allows users to search for current weather and 5-day forecasts by city or current location using the OpenWeatherMap API.


🚀 Live Demo

🌐 Click here to view the app


📸 Preview

Weather App Screenshot


✨ Features

  • 🔍 Search weather by city name
  • 📍 Get weather using your current location
  • 🗓️ View 5-day weather forecast
  • 📌 Recently searched cities (stored in localStorage)
  • 🧠 Intelligent error messages (invalid city/network issues)
  • 📱 Fully responsive UI with Tailwind CSS

⚙️ Technologies Used

  • HTML
  • Tailwind CSS
  • Vanilla JavaScript (ES6)
  • OpenWeatherMap API
  • LocalStorage
  • Netlify (for deployment)

🛠️ Getting Started

1. Clone the repo

git clone https://github.com/sharmaHarshit2000/Weather-App.git
cd Weather-App

2. Install dependencies

If you want to use Tailwind CLI for custom builds:

npm install

3. Build Tailwind CSS (if needed)

npx @tailwindcss/cli -i ./src/css/input.css -o ./src/css/output.css --watch

Or simply use the included output.css for development.


🔐 API Key Setup

This app uses the OpenWeatherMap API.

Set API_KEY path at src/js/config.js:

// filepath: src/js/config.js
const API_KEY = "your_api_key_here";

🧩 Folder Structure

WEATHER-APP/
├── public/
│   ├── _redirects
│   └── favicon.jpg
├── src/
│   ├── css/
│   │   ├── input.css
│   │   └── output.css
│   ├── js/
│   │   ├── config.js
│   │   └── script.js
│   └── style.css
├── index.html
├── package.json
└── README.md

📄 License

This project is licensed under the MIT License.


🙌 Acknowledgements

Made with ❤️ by Harshit Sharma

About

The Weather App is a simple and user-friendly web application that provides real-time weather updates and a 5-day forecast for any city worldwide. Users can search for weather data by entering a city name or use their current location to fetch weather details.This app is built using HTML, CSS (Tailwind CSS) and JavaScript .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published