Weather App built with React. This App shows a 5-day forecast for whatever location the user chooses to search for. It fetch data from OpenWeather, Google Time Zone and Unsplash API as well.
This App has been deployed at Vercel and you can check it out here: https://bluefox182-weather-app.vercel.app/ .
This a solo Front-End project to build a Weather App using ReactJs.
- Clone this Repo and navigate to root directory. You can use
git clone [URL]
- After that, in your Terminal run this:
cd ultimate-weater-app
- In
ultimate-weather-app
directory (You can runpwd
to make sure), runnpm install
and thennpm start
, the project should automatically load onhttp://localhost:3000
You will need to create a .env
file in the root of the ultimate-weather-app
folder, this file should hold the following API Keys in order to run this project locally:
REACT_APP_UNSPLASH_KEY= your_API_key
REACT_APP_OPENWEATHER_KEY= your_API_key
REACT_APP_GOOGLE_API_KEY= your_API_key
- React
- NodeJs
- CSS
- DayJs
- Styled-Components
- Material UI Icons
- React Animated Weather Icons
This project consumes the following APIs:
- OpenWeatherMap API for live weather data and weather forecast data
- Google Time Zone API for getting local time and dates for whichever city/country the user searches for
- Unsplash API for background images relating to the city/country
- Implemented Celcius to Fahrenheit convertion by managing state.
- Implemented Google Time Zome API and
- Changing background dynamically according to searched city using Unsplash API
- Convert time to the searched city's local time with Google API.
- Refactoring Code