Skip to content

This is a simple React app that uses the OpenWeatherMap API to display the current weather in a city.

License

Notifications You must be signed in to change notification settings

emanuelefavero/weather-api-app

Repository files navigation

Weather API React App

This is a simple React app that uses the OpenWeatherMap API to display the current weather in a city.

Live Demo

https://weather-api-app-mu.vercel.app/

Screenshot

Screenshot

Note: This app uses vite, react, typescript, and sass

Note: This app also uses OpenCage geocoding API to get the country for the city

Getting Started

  • Clone the repo, and cd into it
  • Create a .env file in the root directory and add your OpenWeather and OpenCage API keys to it like so:
VITE_OPEN_WEATHER_API_KEY=YOUR_OPEN_WEATHER_API_KEY
VITE_OPEN_CAGE_API_KEY=YOUR_OPEN_CAGE_API_KEY
  • Install the dependencies and run the dev server
npm install
npm run dev

Resources

License

About

This is a simple React app that uses the OpenWeatherMap API to display the current weather in a city.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published