This is a simple weather app built using Vue.js. It allows users to check the current weather conditions of various locations.
- View current weather conditions for different locations.
- Search for weather by city name.
- Display temperature in Celsius or Fahrenheit.
- Responsive design for mobile and desktop.
- Vue.js
- OpenWeatherMap API
- HTML5
- CSS3
- Clone the repository:
- Navigate to the project directory:
- cd vue-weather-app
- Install dependencies:
- npm install
- Create a
.env
file in the root directory and add your OpenWeatherMap API key:
- VUE_APP_API_KEY=your_api_key_here
- Start the development server:
- npm run serve
- Open your browser and navigate to
http://localhost:5173
.
- Enter a city name in the search bar and press Enter or click the search button to view the weather for that location.
- Toggle between Celsius and Fahrenheit by clicking on the temperature unit.
- Explore the current weather conditions for different cities.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Make your changes.
- Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.