A responsive weather app built with Vue.js that provides current weather conditions. Users can search for cities or ZIP codes and view weather details in a visually appealing tile format.
- Search for weather by city name or ZIP code
- Display current weather conditions
- Responsive design for optimal viewing on various devices
- Displays country flags based on the city location
- Vue.js
- Axios (for API requests)
- OpenWeatherMap API (for weather data)
- CSS (for styling)
Make sure you have Node.js and npm installed on your machine.
git clone https://github.com/Kamran-frontend/weather-app.git
cd weather-app
npm install
- Sign up for a free account at OpenWeatherMap.
- Create an API key from your dashboard.
Replace YOUR_API_KEY
in src/services/weatherService.js
with your actual API key:
const API_KEY = "YOUR_API_KEY"; // Replace with your API key
npm run serve
Open your browser and navigate to http://localhost:8080
(or the port specified in the terminal) to view the app.
- Enter a city name or ZIP code in the search bar.
- Press "Enter" or click the "Search" button to fetch the weather data.
- View the current weather conditions and 10-day forecast displayed below.
Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenWeatherMap for providing weather data.
- Vue.js for the framework.