A simple React app that allows users to search for weather information in different cities using a search bar. The app utilizes a weather API to fetch real-time weather data.
- Search for weather in different cities
- Display current weather information
- Responsive design for a seamless experience on various devices
- React
- Weather API
- fetch for making HTTP requests
- Bootstrap
- Tailwind
-
Clone the repository:
git clone https://github.com/MuchokiDavid/weather-app.git
-
Navigate to the project directory:
cd weather-app
-
Install dependencies:
npm install
-
Create a .env file in the root directory and add your weather API key:
REACT_APP_WEATHER_API_KEY=your-api-key
Make sure to replace your-api-key with the actual API key you obtained.
-
Start the development server:
npm start
-
Open your browser and visit http://localhost:3000
-
Use the search bar to look up weather information in different cities.
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to create an issue or submit a pull request.
This project is licensed under the MIT License.
David Muchoki