A simple and elegant weather application that allows users to check the current weather conditions for any city worldwide.
- Real-time weather data using the WeatherAPI
- Clean and responsive user interface
- Display of current temperature in Celsius
- City name, region, and country information
- Local time of the queried location
- HTML5
- CSS3
- JavaScript (ES6+)
- WeatherAPI
- Clone the repository:
git clone [https://github.com/Prabhat-16/WeatherApp]-
Open
index.htmlin your web browser -
Enter a city name in the search box and click the "Search" button to get the current weather information.
This project uses the WeatherAPI service. You'll need to:
- Sign up for a free API key at WeatherAPI.com
- Replace the API key in
script.jswith your own key
index.html- The main HTML file containing the structure of the weather appstyles.css- Contains all the styling for the applicationscript.js- Contains the JavaScript code for fetching and displaying weather data
Feel free to fork this project and submit pull requests with improvements.
This project is open source and available under the MIT License.