The Weather App provides real-time weather updates for any location worldwide. Built with Node.js, Express, and OpenWeatherMap API, it displays temperature, humidity, wind speed, and conditions. With a clean, responsive design, it ensures easy access to accurate weather data on any device, making it perfect for travel planning or daily forecasts.
- Clone the repository:
git clone https://github.com/Girijaray07/Weather-App.git cd weather-app
- Install dependencies:
npm install
- Create a
.env
file and add your OpenWeatherMap API key:API_KEY=your_api_key_here
- Start the application:
node App.js
- Open your browser and visit:
http://localhost:3000
- Enter a location in the search bar and click 'Submit' to retrieve weather details.
The app fetches weather data using the OpenWeatherMap API:
https://api.openweathermap.org/data/2.5/weather?q={city name}&appid={API key}
Make sure to replace {API key}
with your actual API key.
- axios
- dotenv
- ejs
- express
Girija Ray