This React application allows users to access weather forecasts based on their current location or through location search. It utilizes APIs to retrieve weather data and provides the following functionalities:
- Detect Current Location:
- Automatically detects the user's current location and displays today's weather forecast and the average temperature for the last 7 days.
- Location Search:
- Allows users to search for a specific location.
- Displays the current date's forecast and the average temperature for the last 7 days.
Follow these steps to run the project locally:
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd weather-app
-
Install dependencies:
npm install
-
Run the app:
npm start
- React.js
- JavaScript
- APIs (for fetching current location IP address and weather forecast details as per the location)
- HTML
- SCSS
Upon opening the app:
- This app will detect the user's IP Address and display today's forecast for that location.
- Users can also use the search feature to find weather forecasts for specific locations.
- For searched locations, the app shows the current date's forecast and provides the average temperature and weather conditions for the last 7 days.