Weather App is a Vue 3 application that empowers you to effortlessly monitor weather conditions in various cities. This application fetches real-time weather data from a mock API and renders it with Vue 3 and Tailwind CSS, providing a user-friendly and responsive interface.
-
Node.js (v18.12.1): Make sure you have Node.js version 18.12.1 or a later version installed. You can download it from the official Node.js website.
-
Yarn: Ensure you have Yarn installed as your package manager. You can install Yarn from here.
-
Dependencies:
- axios: ^1.5.1
- dayjs: ^1.11.10
- lodash.debounce: ^4.0.8
- vue: ^3.3.4
These are the prerequisites to run the Weather App successfully.
Get started with the Weather App by following these simple steps:
-
Clone the repository:
git clone https://github.com/shaarkr/weather-app.git
-
Navigate to the project folder:
cd weather-app
-
Install dependencies:
yarn install
-
Set up your API credentials:
-
Create an account at Free Weather API - WeatherAPI.com.
-
Obtain your API key and add it to the
.env
file in the root directory:VITE_APP_API_KEY=your-api-key-here
-
-
Run the application:
yarn dev
-
Access the application:
Open your web browser and go to http://localhost:5173.
- On the homepage, you can enter the name of a city in the search box.
- Upon searching, you'll see a list of cities that match your search.
- Click on a city in the list to view weather details in the sidebar.
- City Weather Information: Search for detailed weather information in various cities.
- Temperature and Conditions: View temperature and current weather conditions for the selected city.
- Error Handling: User-friendly error messages are displayed if there's an issue with the API request.
- Responsive Design: The application is designed to be responsive and mobile-friendly.
We welcome contributions to enhance this Weather App. Here's how you can contribute:
- Fork the repository on GitHub.
- Clone your fork locally.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork on GitHub.
- Open a pull request to the main repository.
Your contributions are appreciated, and we encourage your participation in improving this project!
This project is licensed under the MIT License. You have the freedom to use, modify, and distribute it as needed. Enjoy using the Weather App!