A modern, responsive weather dashboard built with React that provides real-time weather information and activity suggestions based on current weather conditions.
- Real-time Weather Data: Fetches current weather information from OpenWeatherMap API
- Activity Suggestions: Provides contextual activity recommendations based on weather conditions
- Responsive Design: Works seamlessly across desktop and mobile devices
- Modern UI: Sleek interface with animations and loading states
- Error Handling: Graceful error handling with user-friendly messages
- Default Template: Shows London weather data by default
- React 18
- Tailwind CSS
- Framer Motion for animations
- Lucide React for icons
- OpenWeatherMap API
Before you begin, ensure you have:
- Reactjs
- npm or yarn package manager
- OpenWeatherMap API key
- Clone the repository:
git clone https://github.com/bobbyy16/weather-dashboard.git
cd weather-dashboard
- Install dependencies:
npm install
# or
yarn install
- Create a
.env
file in the root directory and add your OpenWeatherMap API key:
VITE_WEATHER_API_KEY=your_api_key_here
- Start the development server:
npm run dev
# or
yarn dev
- Open your browser and navigate to
http://localhost:5173
The app uses environment variables for configuration. Create a .env
file with the following variables:
VITE_WEATHER_API_KEY=your_openweathermap_api_key
You can modify the activity suggestions in the getSuggestedActivities
function within the Weather
component.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenWeatherMap for providing the weather data API
- Lucide for the beautiful icons
- Framer Motion for animations
- Tailwind CSS for the styling system
Your Name - @bobsstwt - bobbyyyyy16@gmail.com
Project Link: https://github.com/bobbyy16/weather-now