An intuitive Weather App that provides accurate and up-to-date weather forecasts for any chosen region, ensuring you stay informed and prepared.
- Real-time weather updates.
- Location-based search for weather forecasts.
- Displays temperature, humidity, wind speed, and more.
- User-friendly interface built with React.
- React: Frontend library for building a responsive user interface.
- Vite: Lightning-fast development environment and build tool.
- Tailwind CSS: Styling with utility-first CSS classes.
- Axios: For handling API calls efficiently.
- tomorrow.io: To fetch accurate weather data.
- api.opencagedata.com: For reverse geocoding live/current location coordinates.
-
Clone this repository:
git clone https://github.com/Hirwa9/weather-app.git
-
Navigate to the project directory:
cd weather-app/frontend
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to http://localhost:5173.
src/
: Contains React components and logic.public/
: Static assets such as images and theindex.html
file.vite.config.js
: Configuration for Vite..env
: Environment variables for API keys (e.g., OpenWeatherMap).
Create a .env
file in the root directory and include your OpenWeatherMap API key:
VITE_WEATHER_API_KEY=your_api_key
VITE_GEOCODING_API_KEY=your_api_key
- Add hourly weather predictions.
- Include interactive charts for weather trends.
- Implement offline capabilities for saved weather data.
Contributions are welcome! Feel free to open a pull request or submit an issue for ideas or improvements.
Built with 💙 using React and Vite.