This is a mini React project that fetches and displays weather data using the OpenWeather API. Users can search for weather information by entering a place name.
- Search for weather information by place name.
- Display current weather data including temperature, wind, and humidity.
- React
- OpenWeather API
-
Clone the repository:
git clone https://github.com/yourusername/Weather-App-React.git cd Weather-App-React -
Install the dependencies:
npm install
-
Create a
.envfile in the root of the project and add your OpenWeather API key:VITE_API_URL = "https://api.openweathermap.org/data/2.5/weather" VITE_API_KEY = your_api_key_here -
Start the development server:
npm run dev
- OpenWeather for providing the weather data API.
