A modern Weather Forecast application built with Next.js, Tailwind CSS, and the OpenWeatherMap API. This project provides accurate and detailed weather forecasts, Search for cities with accurate names like the original. including a calendar view for planning ahead. It features a sleek and responsive design optimized for all device sizes, ensuring a seamless user experience.
- 10-Day Weather Forecast: View accurate weather predictions for the week ahead.
- Calendar View: Intuitive and easy-to-navigate calendar interface for checking forecasts by date.
- Responsive Design: Optimized for mobile, tablet, and desktop devices.
- Real-Time Data: Fetches up-to-date weather information from the OpenWeatherMap API.
- Dynamic backgrounds. The background color changes every 6 times (Dawn, Morning, Noon, Afternoon, Evening and Night) and rainy weather.
- Modern Tech Stack: Built using Next.js for server-side rendering and Tailwind CSS for streamlined styling.
- Customizable: Easily adapt the design and features to suit your needs.
This weather application leverages the OpenWeatherMap API to retrieve weather data for a selected location. Users can explore weather details for the current day or use the interactive calendar to view forecasts. It provides the following information:
- Current Weather: Temperature, humidity, wind speed, and weather conditions.
- 10-Day Forecast: Daily high and low temperatures, as well as expected weather conditions.
- Location Search: Search your city or towns with the exact same name as the original to get the local weather forecast.
Follow the steps below to set up the project locally:
# Clone the repository
git clone https://github.com/ryzmdn/weather-forecast.git
# Change into the project directory
cd weather-forecast
# Install dependencies
npm install
# Open the code editor
code .
# Run the development server
npm run dev
Once the development server is running, you can access the application at http://localhost:3000
. Customize the app to match your preferences:
-
Set API Key:
- Sign up at OpenWeatherMap to get a free API key.
- Add your API key to the
.env
file: env NEXT_PUBLIC_OPENWEATHER_API_KEY=your_api_key_here
-
Modify Location Options:
- Edit the default locations in the src/data/locations.ts file.
-
Tailwind CSS Styling:
- Customize styles in the
src/styles
directory to fit your brand.
- Customize styles in the
- Add Features: Extend functionality by integrating additional weather metrics such as UV index or air quality.
- Update UI: Modify the components in the src/components directory to match your design preferences.
- Deploy: Host the project on platforms like Vercel, Netlify, or any other service that supports Next.js.
For any issues or inquiries, please email riybuzniz@gmail.com
.
We welcome your feedback! Feel free to share your suggestions or report bugs by reaching out at riybuzniz@gmail.com
.
This project is licensed under the MIT License. You are free to use, modify, and distribute it for personal or commercial purposes.