An interactive web application that displays weather information for any region on a global map. Built with Next.js and WeatherStack API, it offers a seamless user experience for exploring weather conditions worldwide.
- 🗺️ Interactive global map interface
- 🔍 Search functionality for any region
- 🌡️ Real-time weather information display
- 📍 Automatic user location detection on first load
- 📱 Responsive design for various devices
To set up the World Weather Map project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/apilayer/weather-map.git
-
Navigate to the project directory:
cd weather-map
-
Install the dependencies:
npm install
-
Create a
.env.local
file in the root directory and add your API keys:WEATHERSTACK_API_KEY= NEXT_PUBLIC_MAPBOX_API_KEY= NEXT_PUBLIC_IPSTACK_API_KEY=
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser to see the application.
- Upon loading, the app will attempt to detect your current location and show current weather.
- Use the search input in the top left corner to look up weather for any region.
- Type any place on the input and view its weather information.
- Next.js
- Weather data provided by WeatherStack API
- IP information provided by IpStack API
- Map functionality powered by MapBox
Contributions are welcome! Please feel free to submit a Pull Request.