Weather Sphere is a responsive web application that provides historical weather forecasts based on user-input location and date ranges. It visualizes data in charts and tables with pagination, offering an intuitive user experience.
See the live demo: Live
- Search Weather Data: Fetch weather data using latitude, longitude, and date range.
- Charts and Graphs: Display weather trends visually.
- Paginated Tables: View detailed weather data with pagination for better accessibility.
- Caching: Optimized data caching to reduce redundant API calls.
- Responsive Design: Fully responsive across different screen sizes.
- State Management: Uses Redux Toolkit for global state management.
- Frontend: React, Tailwind CSS
- Backend API: Open-Meteo API
- State Management: Redux Toolkit
- Chart Library: Chart.js
- Clone the Repository:
git clone https://github.com/kirankumar-Matham96/WeatherSphere-react.git- Navigate to the Project Directory:
cd weather-sphere- Install Dependencies:
npm install- Start the Development Server:
npm run dev- Open in Browser:
http://localhost:5173/
- Enter latitude, longitude, start date, and end date in the input form.
- Click on Get Data to fetch weather information.
- View data in the chart and table format.
- Use pagination controls to navigate through table rows.
- Click Clear to reset the form.
weather-sphere/
├── public/
├── src/
│ ├── assets/ # Static assets
│ ├── components/ # Reusable UI components
│ ├── pages/ # Application pages (Dashboard, Home)
│ ├── redux/ # Redux slices and store
│ ├── App.jsx # Main application component
│ └── main.jsx # Entry point
├── .gitignore
├── package.json
├── README.md
├── tailwind.config.js
└── vite.config.js
- Weather Data API: Open-Meteo API
- React: JavaScript framework for building UI.
- Redux Toolkit: Simplified state management.
- Chart.js: For visualizing weather data.
- Tailwind CSS: Utility-first CSS framework.
- Axios: HTTP client for API calls.
- React Router: Navigation and routing.
- Fork the repository.
- Create a new branch:
git checkout -b feature-name- Commit changes:
git commit -m 'Add feature'- Push to the branch:
git push origin feature-name- Create a Pull Request.
This project is licensed under the MIT License.
Enjoy using Weather Sphere!