Welcome to WeatherPulse, the ultimate weather dashboard that provides real-time weather data with location filters and interactive elements! πβοΈ Whether you want to check the current temperature, see the weather forecast, or explore your favorite locations on a map, this app has everything you need. π‘οΈπ§οΈ
Try it out now: WeatherPulse
βοΈ If you like this project, don't forget to give it a star! βοΈ
Your support helps us improve the project and keep adding cool features!
- Interactive Dashboard π: View key weather metrics like temperature, humidity, pressure, and more in a sleek and interactive interface.
- Responsive Design π±π»: The app adapts to all screen sizes, offering a seamless experience on mobile and desktop.
- Map Integration πΊοΈ: Visualize the weather of different locations using an interactive map.
- Weather Forecast Graph π: Get future weather predictions with an interactive graph showing the forecast for the next days.
- API Key Integration π: Fetch real-time weather data with a personal API key stored in a secure
.env
file.
Want to try it out on your local machine? Here's how you can set it up:
-
Clone this repository:
git clone https://github.com/dsaikiran01/WeatherPulse.git
-
Navigate to the project directory:
cd WeatherPulse
-
Create a
.env
file in the root directory:VITE_OPEN_API_KEY=your-api-key-here
-
Install the required dependencies:
npm install
-
Run the app locally:
npm run dev
The app will be available at
http://localhost:5173
. π
You can use the following two endpoints to fetch the weather data:
- Current Weather:
https://api.openweathermap.org/data/2.5/weather?q={city}&appid={API_KEY}
- Weather Forecast:
https://api.openweathermap.org/data/2.5/forecast?q={city}&appid={API_KEY}
Replace {city}
with the desired city and {API_KEY}
with your API key.
- React βοΈ: A JavaScript library for building user interfaces.
- Vite β‘: A fast build tool that offers an optimized development experience.
- TypeScript π₯οΈ: Type-safe JavaScript for enhanced productivity and bug prevention.
- Material UI π¨: A popular React component library for fast and responsive design.
- OpenWeather API π¦οΈ: The weather data provider.
- Leaflet.js π: A JavaScript library for interactive maps.
Hereβs a breakdown of the projectβs structure:
weatherpulse/
βββ src/ # Source files for the app
β βββ components/ # Reusable UI components
β βββ hooks/
β βββ App.tsx # Main app component
β βββ App.css # Styling for the app
βββ .env # Your environment variables (API Key)
βββ index.html # The main page of the app
βββ package.json # Project configuration and dependencies
βββ README.md # This document you're reading π
Weβd love for you to contribute to WeatherPulse! Fork it, improve it, and send us a pull request. Letβs make this weather dashboard even better together! β€οΈ
Feel free to create issues for bugs, improvements, or feature requests. Letβs build the best weather dashboard! π
- Daily Forecast π€οΈ: Add a more detailed daily weather forecast display.
- User Authentication π: Allow users to save their favorite locations and preferences.
- Dark Mode π: Implement a toggle for dark and light mode based on user preference.
- Extended Map Features πΊοΈ: Add more map interactions like weather layers and geolocation.
Stay up to date with the weather, and let WeatherPulse guide you through every stormy or sunny day! π§οΈπ