Follow me: Instagram
- Install Axios
- API for test: https://reqres.in/
- Geocoding:
https://api.openweathermap.org/geo/1.0/direct?q=${city}&limit=5&appid=${API key}
- Call current weather data:
https://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lon}&appid=${API key}
- API geocoding: https://www.mapbox.com/
- The last 6 cities consulted are saved in a JSON file.
- Refactored code.