A React web-app that display weather based on the city entered by the user.
- After cloning the repo, go to the directory and run
npm install
to install the node_modules. - Inside the
APIKeys
folder, specity your GooglePlaces API key and OpenWeatherMap API key in the respective files.- Instructions to generate API keys:
- Run
npm start
to run the app!
-
To show suggestions based on the city typed in input box
-
Endpoint to Display list of cities based on initials of input
- Will return JSON object of list of cities that start with "Ahme"
-
Instruction to setup API keys for Google Places API
- Checkout what restrictions you need to add
- To display weather based on city, country, latitude, longitude, etc.
- Type of weather
- weather[0].description
- Weather type icon
- weather[0].icon
- latitude, longitude
- coord.lon, coord.lat
- temperature (given in K) = (K-273) celcius
- main.temp
- Humidity in %
- main.humidity
- Wind speed (given in m/s) = ms*3.6 kmph
- wind.speed