This is a simple weather application that provides weather information based on user-provided location. It utilizes two APIs: Weatherstack for fetching weather data and Mapbox for geocoding user input.
- Location Search: Users can search for weather information by entering a location name or coordinates.
- Responsive Design: The application is designed to be responsive, providing a consistent experience across different devices.
- Frontend: Handlebars.js, HTML, CSS
- APIs: Weatherstack, Mapbox
- JavaScript Libraries: Axios (for API requests), Bootstrap (for styling)
- Clone the repository:
git clone https://github.com/KhaledGharib/Weather-web-app.git
- Navigate to the project directory:
cd weather-app
- Install dependencies:
npm install
- Create a
.env
file in the root directory and add your API keys:WEATHERSTACK_API_KEY=your_weatherstack_api_key MAPBOX_API_KEY=your_mapbox_api_key
- Start the development server:
npm start
- Open the application in your web browser.
- Enter a location in the search bar and press Enter or click the search button.
- View the current weather information displayed on the screen.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/new-feature
- Make your changes and commit them:
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature/new-feature
- Submit a pull request.