A simple weather forecasting web application built with HTML, CSS, and JavaScript, powered by the OpenWeatherMap API.
The API key is secured in a Node.js backend using a .env file.
- Search for any city worldwide 🌍
- Displays:
- Temperature 🌡️
- Humidity 💧
- Wind speed 🌬️
- Weather condition icons ☁️🌞🌧️
- Error handling for invalid city names or server issues
- Fully responsive and clean UI
weather-app/ ├── images/ ← Weather icons and screenshots ├── node_modules ├── .env ← API key (not committed) ├── .gitignore ├── index.html ← Frontend HTML ├── package-lock.json ├── package.json ├── README.md ├── server.js ← Node.js backend └── style.css ← CSS styling
git clone https://github.com/PremKumar7516/weather-app.git
cd weather-appnpm install express node-fetch dotenv corsWEATHER_API_KEY=your_actual_openweathermap_api_key_herenode server.jsBackend runs at: http://localhost:3000
- Open index.html in your browser
- Enter a city name and click search
- The frontend calls your backend to fetch weather data
🧑💻 Author
Prem Kumar (PremKumar7516) 💻 Computer Science Student | 🌦️ Frontend Learner
