This is a simple responsive app that uses OpenWeather's API to get weather in multiple locations. App uses Fetch API to get weather data.
This is how it looks on a desktop.
This is how it looks on a Mobile.
HTML, CSS, Javascript, Fetch API
- Get an API key by signing up on OpenWeather API: https://openweathermap.org/api
- Create a file called "API.js" and place it into the WeatherLocations Directory and add your API key with the following code :
class API{
constructor(){
this.apiKey = 'PUT_YOUR_API_KEY_HERE';
}
getKey(){
return this.apiKey;
}
}
- Delete the .gitignore file
- Launch in browser and run