This project is a simple Weather Application built using React and Axios to fetch real-time weather data from the OpenWeatherMap API.
Fetches weather details based on city name or current location
Displays temperature, weather conditions, humidity, and wind speed
Responsive UI with a background image
Prerequisites
Make sure you have Node.js and npm installed on your system.
- Clone the repository:
- Navigate to the project directory:
- Install dependencies:
- Install Axios for API requests:
- Running the Project
To start the development server, run:
Then open http://localhost:3000 in your browser.
Fetching Weather Data
The application fetches weather data from the OpenWeatherMap API. Ensure you replace the API key inside the fetchWeatherData function.
To build the project for production, run:
This will generate an optimized build/ folder, ready for deployment.
Vercel
Netlify
GitHub Pages
React.js - JavaScript library for building user interfaces
Axios - HTTP client for fetching API data
OpenWeatherMap API - Fetching weather details