This is a basic weather app that allows users to search for a city and get the current weather conditions. It was created as a learning project to practice JavaScript, HTML, CSS, and API integration.
- Get weather information for any city.
- Displays temperature, conditions, and a weather icon.
- Simple and clean user interface.
- Dark mode for comfortable viewing.
- HTML
- CSS
- JavaScript
- OpenWeatherMap API
-
Clone the repository:
git clone https://github.com/your-username/simple-weather-app.git
-
Obtain an API key from OpenWeatherMap.
-
Create a
.env
file in the project's root directory and add your API key:API_KEY=your_actual_api_key_here
-
Replace 'API_KEY_HERE' with your API variable
-
Open
index.html
in your web browser.
index.html
: Main HTML file for the app's structure.style.css
: CSS file for styling the app.script.js
: JavaScript file for fetching and displaying weather data..env
: (Not included in the repository) File to store your API key.README.md
: This file.
This project is licensed under the MIT License - see the LICENSE file for details.