A modern and responsive weather application built using React.js, Vite, and WeatherAPI. This app provides current weather information, and weather conditions for your desired cities.
- Search for Cities: Look up current weather details for any city.
- Weather Details:
- Current temperature, humidity, and condition.
- Dynamic Icons: Displays appropriate weather icons based on conditions.
- Dark Mode: Toggle between light and dark modes.
- Frontend: React.js, Vite, Tailwind CSS
- API: WeatherAPI
- Icons: Heroicons, Weather Icons
- Node.js (>= 16)
- npm or yarn
-
Clone the repository:
git clone https://github.com/Lanxxxe/Weather-App.git cd weather-app -
Install dependencies:
npm install # or yarn install -
Set up your WeatherAPI key:
- Create an account on WeatherAPI.
- Obtain your API key.
- Create a
.envfile in the root of the project:VITE_API_KEY=your_api_key_here
-
Start the development server:
npm run dev # or yarn dev -
Open your browser and navigate to
http://localhost:3000.
- Type the name of a city in the search bar and press the Search button.
- View the current weather, including:
- Temperature
- Humidity
- Condition icon
- Toggle dark mode by clicking the sun/moon icon in the header.
Check out the live version of the app here:
Contributions are welcome! Please fork the repository and submit a pull request.