WeatherCentral is a standalone web application that provides weather forecasts for a specified location. Users can enter an address, and the application will fetch and display the weather information, including current conditions, hourly forecasts, and a 7-day forecast.
- Weather data retrieved from OpenWeather API.
- Location data retrieved from Google Maps Geocoding API.
- Display of current weather conditions.
- Hourly and 7-day weather forecasts.
- Responsive design for both mobile and desktop.
Before you begin, ensure you have met the following requirements:
- Node.js and npm installed.
To get started with WeatherApp, follow these steps:
- Clone this repository:
git clone https://github.com/tarekchaalan/Weather-App.git
- Navigate to the project directory and install the required dependencies:
cd Weather-App
npm install
- Set up your environment variables by creating a
.envfile in the project directory with the following:
OPENWEATHER_API_KEY=your_openweather_api_key
GOOGLE_MAPS_API_KEY=your_google_maps_api_key
- Build the application:
npm run build
- Start the development server:
npm run start
- Enter a location address in the search bar and click the "Search" button.
- Weather information for the specified location, including current conditions, hourly forecasts, and a 7-day forecast, will be displayed.
Specify the dist directory as the directory to be deployed when prompted.
This project is licensed under the MIT License.