This project is a weather forecast application built using React.js that fetches and displays weather data from a public API. It emphasizes reusable components, API integration, state management, and a user-friendly interface.
Current Weather Display: Shows the current weather for a default city (e.g., New York) with components for city name, temperature, weather condition, and an icon.
City Search Functionality: Users can search for weather information for different cities using a custom-built input component, allowing for efficient and intuitive city lookup.
Five-Day Forecast: Below the current weather, users can view a detailed 5-day weather forecast, including:
Temperature Unit Conversion: Users can toggle between Celsius and Fahrenheit, with manual conversion logic implemented to ensure accurate temperature displays.
Responsive Design: The application is styled to be visually appealing and responsive, adapting seamlessly to various screen sizes and orientations.
Additional Features :
To set up the Weather Forecast Application locally, follow these steps:
git clone https://github.com/adaharshsingh/Propacity.git
cd Propacity
npm i
npm run dev
Create a .env File::
VITE_API_KEY=your_api_key_here
#You can obtain the API key from the [Visual Crossing Weather API](https://rapidapi.com/visual-crossing-corporation-visual-crossing-corporation-default/api/visual-crossing-weather)
Contributions are welcome! If you'd like to contribute, please submit a pull request or open an issue.
This project is licensed under the MIT License.
Thanks to OpenWeatherMap for providing the weather data API.