/weather-app

A weather app written in JavaScript with a completely Model-View-Controller Architecture.

Primary LanguageJavaScriptMIT LicenseMIT

Weather App

A weather app written in JavaScript with a completely Model-View-Controller Architecture. There are two ways to fetch weather data:

  • By writing the city name in the specified input element and clicking the Search button (Enter key works the same way),
  • By clicking the small satellite icon, which represents geolocation, this method fetches your device's location using the Geolocation API, a built-in JavaScript feature. It then checks the weather for the city corresponding to your coordinates.

The Weather App uses the Parcel NPM module. The compiled and ready-to-use files are located in the "public" git branch. The source code of this project can be found in the src folder.

Credits

This app is based on the open-meteo.com and nominatim.openstreetmap.org APIs. The favicon image is artwork by Freepik, sourced from Flaticon.com. All SVG icons included in this project are from the Material Design Icons website.

Author & License

The project was created by Jan Pabisiak and it is using the MIT License.