This project provides a comprehensive weather forecasting application that allows users to get current weather information and forecasts for different locations around the globe.
- Node.js (v14 or higher)
- npm (v6 or higher)
-
Clone the repository:
git clone https://github.com/itsleonbro/global-weather.git cd global-weather -
Install dependencies:
npm install
-
Create a .env file in the root directory and add your OpenWeatherMap API key:
VITE_OPENWEATHER_API_KEY=openweather_api_key
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5173to view the application.
- React: A JavaScript library for building user interfaces
- React Leaflet: React components for Leaflet maps
- Leaflet: JavaScript library for interactive maps
- Axios: HTTP client for making API requests
- OpenWeatherMap API: Used to fetch weather data
- Users have an internet connection to load map tiles and fetch weather data