This is an intuitive, user-friendly Weather App built with React. It integrates with the OpenWeather API to provide current weather details for any location.
Key features of the application include:
- Location Input: Users can input a location to get the current temperature, humidity, and other weather conditions.
- Device Location: The application can retrieve and display the weather details for the user's current device location.
- Bookmarkable and Shareable: The application adds the latitude and longitude to the query parameters of the URL, making the weather details page bookmarkable and shareable.
- Weather Icons: The application displays an appropriate weather icon based on the weather condition.
weather-app.mp4
Hom Page
Details Page
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of
node
andnpm
. - You have a OpenWeather API key. How to get an API key
To run this app, follow these steps:
-
Clone this repository.
-
Navigate to the project directory.
-
Create a
.env
file in the root of your project. -
Add the following line to your
.env
file:VITE_OPEN_WEATHER_API_KEY = "YOUR-API-KEY-HERE";
Replace
YOUR-API-KEY-HERE
with your actual OpenWeather API key. -
Install the project dependencies by running:
npm install
-
Start the development server by running:
npm run dev
The application should now be running locally.