β Weathering With Me
A weather app built using React and the OpenWeatherMap API to display current weather conditions and forecasts for various cities.
ΒΆ Description
The Weather App is a React-based web application that allows users to search for cities and view the current weather conditions as well as the daily forecast for the upcoming days. The app utilizes two main APIs: the OpenWeatherMap API to fetch weather data and the GeoDB Cities API from RapidAPI to provide autocomplete suggestions for city names.
π· Preview
βοΈ Features
- Search for cities and retrieve weather data.
- Display current weather conditions including temperature, description, and icon.
- Display a daily forecast for the upcoming days with details like temperature, pressure, humidity, wind speed, and more.
- Utilize the GeoDB Cities API for city name autocomplete suggestions.
π§ Installation
- Clone the repository:
git clone https://github.com/siriusberg/weathering-with-me.git
- Navigate to the project directory:
cd weather-app
- Install the required dependencies:
npm install
(PS: You can usenpm install --force
if the dependencies is outdated and then update it manually)
π±οΈ Usage
- Obtain your API keys:
- Sign up for an API key from the OpenWeatherMap API
- Register for an account on RapidAPI and subscribe to the GeoDB Cities API.
- Replace
WEATHER_API_KEY
insrc/components/api.js
with your OpenWeatherMap API key. - Replace
X-RapidAPI-Key
insrc/components/api.js
with your RapidAPI key. - Start the development server:
npm start
- Open your web browser and go to
http://localhost:3000
to use the app.
π API Configuration
OpenWeatherMap API
To use the OpenWeatherMap API, follow these steps:
- Visit OpenWeatherMap and create an account.
- Generate an API key from your account settings.
- Replace
WEATHER_API_KEY
insrc/components/api.js
with your API key.
GeoDB Cities API
To use the GeoDB Cities API from RapidAPI, follow these steps:
- Register for an account on RapidAPI.
- Subscribe to the GeoDB Cities API.
- Replace
X-RapidAPI-Key
insrc/components/api.js
with your RapidAPI key.
π» Technologies Used
π€ Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to create an issue or submit a pull request.