A simple weather application that allows users to enter a city name and view current weather details powered by the OpenWeather API. Built with React and Vite, and styled with Material UI for an attractive, user-friendly interface.
Check out the live demo of the project hosted on Netlify:
Weather-Widget
- City Input: Users can input any city name.
- Weather Data: The app fetches weather data for the given city from the OpenWeather API.
- Weather Details: Displays the current temperature, weather condition, humidity, and wind speed.
- Material UI Styling: Beautiful, responsive UI built using Material UI.
- Frontend: React.js
- Bundler: Vite & Material UI
- API: OpenWeather API
- Deployment Platform: Netlify
Follow the steps below to get your local copy up and running:
Ensure you have Node.js installed on your machine.
-
Clone the repository:
git clone https://github.com/your-username/weather-widget.git cd weather-widget
-
Install dependencies:
npm install
-
Set up your OpenWeather API key:
-
Sign up for a free API key at OpenWeather.
-
Create a
.env
file in the root directory of the project and add your API key:REACT_APP_OPENWEATHER_API_KEY=your-api-key
-
-
Run the development server:
npm run dev
Visit http://localhost:3000 to view the app in your browser.
- OpenWeather API for providing the weather data.
- Material UI for beautiful and responsive UI components.
- Vite for providing an extremely fast build tool.
- Netlify for easy deployment and hosting.
This project is licensed under the MIT License - see the LICENSE file for details.