A simple weather application that displays current weather information for a specified location.
- Search for weather by city name
- View current temperature, humidity, and weather conditions
- User-friendly interface
-
Clone the repository:
git clone https://github.com/dilushamadushan/react-weather-app.git cd react-weather-app -
Install dependencies:
Make sure you have Node.js and npm installed.npm install
-
Set up environment variables:
Create a.envfile in the root directory and add the following variables:VITE_API_KEY=your_api_key_here VITE_BASE_URL=your_base_url_hereReplace
your_api_key_herewith your weather API key, andyour_base_url_herewith the base URL of your weather API provider. -
Run the development server:
npm start
- Enter the name of a city in the search bar to view the current weather conditions for that location.
Contributions are welcome! Please open an issue or submit a pull request for any bug fixes or enhancements.