This is a simple weather application built using Express.js and the OpenWeatherMap API. It allows users to search for the weather conditions of a specific location and displays the temperature and weather condition.
![Screenshot 2023-10-31 183214](https://private-user-images.githubusercontent.com/107418040/279465592-32f485fa-cac8-4309-9c31-c465a7a20f39.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODYyMjIsIm5iZiI6MTczODk4NTkyMiwicGF0aCI6Ii8xMDc0MTgwNDAvMjc5NDY1NTkyLTMyZjQ4NWZhLWNhYzgtNDMwOS05YzMxLWM0NjVhN2EyMGYzOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwMzM4NDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNTk3NTUzYzdiYjZmYzRiZjBiMjA1YjJkMzMxYzYxZDViM2I3MzIwMTRmMThjYTQ2YjczMGM0MGYxYjRmZGE3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Qwb6vJlOU3C768y4ux5N9sIoimaWjOD_dS_svcPvULs)
User-friendly web interface. Real-time weather data retrieved from the OpenWeatherMap API. Displays temperature and weather conditions for the searched location. Handles errors gracefully when the location is not found or if there are API issues.
Before you begin, ensure you have met the following requirements:
- Node.js and npm (Node Package Manager) installed on your system.
- An API key from OpenWeatherMap. You can obtain one by signing up at OpenWeatherMap.
- Clone this repository to your local machine:
- Navigate to the project directory:
- Install the project dependencies using npm: npm install
- Set your OpenWeatherMap API key:
- Open the index.js file.
- Replace "YOUR_API_KEY" in the API_URL with your actual API key.
Start the application: nodemon index.js
- The server will start, and you can access the application in your web browser at http://localhost:3000.
- Enter the name of the location (e.g., "London") in the search box and click the "Get Weather" button.
- The weather information for the specified location will be displayed on the page.
You can customize this application by modifying the frontend (HTML/CSS) and backend (Express.js) code to fit your specific requirements. Feel free to make changes to the UI, error handling, or add more features as needed.
Thanks to the OpenWeatherMap API for providing real-time weather data. Feel free to update this README with additional information, documentation, or usage instructions as needed for your specific application.