A simple and visually appealing React application that provides real-time weather updates for cities worldwide using the OpenWeatherAPI. Users can search for cities to check weather details, including temperature, humidity, and weather descriptions, along with a relevant image for the weather conditions.
- Search Functionality: Easily search for weather details of any city.
- Real-Time Data: Displays real-time temperature, humidity, and weather description.
- Responsive Design: User-friendly interface suitable for all devices.
- Weather Visualization: Includes weather images matching current conditions.
- ReactJS: Front-end framework.
- OpenWeatherAPI: Fetches weather data.
- CSS: Styling for the application.
-
Node.js: Ensure Node.js and npm (Node Package Manager) are installed.
- Check installation:
node -v npm -v
- Download Node.js here.
- Check installation:
-
Git: Make sure Git is installed for cloning the repository.
- Check installation:
git --version
- Download Git here.
- Check installation:
Follow these steps to clone and run the application:
-
Clone the Repository:
git clone https://github.com/ashmita129/Forecast360
-
Navigate to the Project Directory
cd weather-dashboard -
Install Dependencies
npm install
-
Run the Application
npm run dev
To access the OpenWeatherAPI, follow these steps:
- Visit OpenWeatherAPI and sign up for a free account.
- Obtain your API key from the dashboard.
- Create a
.envfile in the project root directory. - Add the following line to the
.envfile:API_KEY=your_openweather_api_key
- Replace your_openweather_api_key with your actual API key.
npm run dev- Enter a city name in the search bar.
- Click "Search" to fetch the weather details.
- View the city's temperature, humidity, weather description, and an image representing the weather conditions.
Temperature = -1.74°C
Humidity = 85
Min Temp = -2.27°C
Max Temp = -1.25°C
Weather = Broken clouds, feels like -3.67°C 


