A modern weather app built with React, styled using Material UI (MUI), and powered by the OpenWeather API. The app allows users to search for any place and get real-time weather information.
🌤️ 🌧️
![Watch the demo]
- 🔍 Real-Time Place Search: Enter a city name to instantly fetch and display weather data.
- 🌄 Dynamic Weather Imagery: Background and icons update based on the current weather condition (e.g., sunny, rainy, cloudy).
⚠️ Error Handling: Displays a user-friendly message when a place is not found.
- Frontend: React
- UI Components: MUI (Material UI)
- Weather Data: OpenWeatherMap API
- Clone the repository:
git clone https://github.com/your-username/WeatherNow.git
cd mini-project-react
- Install dependencies:
npm install
-
Set up API key:
Create a .env file in the root directory
VITE_API_KEY=enter_your_api_key
VITE_API_URL=enter_your_api_url
- Start the development server:
npm run dev
📁 Folder Structure
WeatherNow/ # Installed dependencies
├── public/ # Static files
├── src/
| ├── assets/
| ├── InfoBox.jsx
| ├── InfoBox.css
| ├── SearchBox.jsx
| ├── SearchBox.css
| ├──WeatherApp.jsx
| ├── App.jsx
| ├── App.css
| ├── main.jsx
| └── index.css
├── .gitignore
├── eslint.config.js
├── index.html
├── package-lock.json
├── package.json
├── README.md
├── vite.config.js