A modern weather application that provides real-time weather updates for any city or location worldwide.
- Display current weather information:
- Temperature (Celsius/Fahrenheit).
- Humidity, wind speed, preassure and cloud coverage.
- Responsive design for desktops and mobile devices.
- Weather forecast (4 days).
- Live city search with real-time data fetching.
- Simple, intuitive user interface.
- Light and dark mode available.
- Find current location button.
- Users can switch between Celsius and Fahrenheit
Check out the live version of the app here: https://weather-app-react-snowy-five.vercel.app/
- ReactJS.
- CSS Modules.
- GeoDB Cities API - online places database for city search functionality.
- OpenWeatherMap API - real-time weather data fetching.
Install my-project with npm
git clone https://github.com/juliabgkv/weather-app-react.git
cd weather-app-reactInstall dependencies:
npm installCreate a .env file in the root directory with your API keys:
REACT_APP_GEO_API_URL=https://wft-geo-db.p.rapidapi.com/v1/geo
REACT_APP_GEO_API_KEY=your_geo_api_key_here
REACT_APP_WEATHER_API_URL=https://api.openweathermap.org/data/2.5
REACT_APP_WEATHER_API_KEY=your_weather_api_key_hereStart the development server:
npm start