A simple, clean UI weather app that provides current weather and a 5-day forecast.
✅ Search functionality (search for any city)
✅ Temperature unit toggle (Celsius/Fahrenheit)
✅ Light/Dark mode theme switching
✅ Dynamic background based on weather conditions
✅ 5-day weather forecast
- OpenWeather API (for weather data)
- Pexels API (for background images)
- React (Frontend framework)
- Tailwind CSS (Utility-first CSS framework)
- DaisyUI (Tailwind-based UI components)
-
Clone the repository:
git clone https://github.com/yourusername/weather-app.git cd weather-app -
Install dependencies:
npm install
-
Create a
.envfile and add your API keys:VITE_OPENWEATHER_API_KEY=your_openweather_api_key VITE_PEXELS_API_KEY=your_pexels_api_key
-
Start the development server:
npm run dev
With Netlify (The API calls show unauthorized access due to no .env file present even after setting environment variables, will fix this soon!)
Contributions are welcome! Feel free to fork the repo and submit a pull request.
This project is licensed under the MIT License.
- Weather icons: From OpenWeather API
- API providers: Pexels & OpenWeather
- Libraries: Tailwind CSS & DaisyUI
- Website tab icon: Weather app icons created by Andrean Prabowo - Flaticon
- Background images: Provided by Pexels API







