Welcome to the Weather App, a web application that provides real-time weather information for locations around the world. Stay informed about current weather conditions, forecasts, and more.
The Weather App is a web-based weather forecast tool built with React and powered by the OpenWeather API. It allows users to search for weather information by location, view current weather conditions, and access extended forecasts.
The Weather App leverages the following technologies:
- React: A JavaScript library for building user interfaces.
- Vite: A fast build tool for JavaScript and TypeScript applications.
- OpenWeather API: Provides access to a wealth of weather data.
- HTML5 and CSS3: Standard web technologies for structure and styling.
Follow these steps to run the Weather App locally on your machine.
Before you begin, make sure you have the following installed:
- Node.js: You can download it from nodejs.org.
-
Clone the repository to your local machine:
-
git clone https://github.com/yourusername/weather-app.git
-cd weather-app
-npm install
To use the OpenWeather API, you'll need an API key. Here's how to set it up:
-
Visit the OpenWeather website and sign up for an account if you don't have one.
-
After signing in, go to the API Keys section in your account dashboard.
-
Generate a new API key and keep it handy.
-
Create a .env file in the project root directory.
Once you've configured the API key, you can start the development server:
-npm run dev
The app will be available at http://127.0.0.1:5173/. Open your web browser and navigate to this URL to use the Weather App locally.
Enter a location in the search bar and click the search button to retrieve weather information for that location. View current weather conditions, including temperature, humidity, feels like, and more.
Contributions to the Weather App are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository on GitHub.
- Create a new branch with a descriptive name:
-
git checkout -b my-feature
- Make your changes and commit them:
-
git commit -am 'Add new feature'
- Push the changes to your forked repository:
-
git push origin my-feature
- Open a pull request on the original repository.
Please make sure your code adheres to the project's coding standards and includes appropriate tests if necessary.