This is a weather application built using React. It fetches weather data from the OpenWeather API and displays current weather information based on user input (city name).
- Display current location, temperature, date, and time
- Search functionality to fetch weather data for different locations
- Dark mode and light mode toggle
- Responsive design
- Display additional weather details such as humidity, wind speed, and weather description
To run the application locally:
-
Clone the repository:
git clone https://github.com/krishnapraveen84/WeatherApplication cd weather-app
-
Install dependencies:
npm install
-
Get your API key from OpenWeather and replace
YOUR_API_KEY
inApp.js
. -
Start the application:
npm start
- Ensure valid city names are entered to fetch the correct weather data.
- Network failures
- Handled the Invalid city name input by rendering the NotFound image and text to user
- Handled the Network failures by showing user the message and Retry button to again fatech the data
React JS JavaScript HTMl5 CSS Flex Box Media Quires (for responsive websites)
react-loader-spinner
Weather component
- Adding Multiple cities names and when user clcks on specific city it will show respective details
- Hourly forecast
- Adding maps
- cloudinary (for images)
- colorhunt (for colors)