- Change API keys in 'src/App.vue':
const geoResponse = axios.get(`https://api.openweathermap.org/data/2.5/weather?q=${this.city}&units=metric&appid=API-KEY`) //Change API-KEY to your value
.then(res => (this.info = res.data))
const {lat, lon} = geoResponse.data[0]
const weatherResponse = axios.get(`https://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lon}&units=metric&appid=API-KEY`) //Change API-KEY to your value
this.info = weatherResponse.data- Run application via using:
npm run dev