A simple and elegant real-time Weather Application built with HTML, CSS, EJS, Node.js, and Express.js.
This app fetches live weather data from the OpenWeatherMap API and displays it in a clean, user-friendly UI.
- 🌍 Real-time Weather data fetched from OpenWeatherMap API.
- 🔍 Search Functionality – Search weather for any city or country.
- 📍 Displays Temperature, Weather Condition, Location, and Time.
- ❌ 404 Error Page – Handles cases where a city or country is not found.
- 🎨 Clean and responsive UI design built with HTML & CSS.
- Frontend: HTML, CSS, EJS (Template Engine)
- Backend: Node.js, Express.js
- API: OpenWeatherMap API
- Clone the repository
git clone https://github.com/pranto-bapary/weather-app.git cd weather-app - Install dependencies
npm install
- Add OpenWeatherMap API Key
- Create a .env file in the project root.
- Add your API key like this:
WEATHER_API_KEY=your_api_key_here- Run the app
App will be running on: 👉 http://localhost:3000
npm start
weather-app/
│-- public/ # Static files (CSS, Images, JS)
│-- views/ # EJS templates
│-- app.js # Main server file
│-- package.json
│-- .env
│-- README.md
- OpenWeatherMap for providing real-time weather data.
- Node.js & Express.js community for backend support.