Live version of the site can be found here
This weather app gets the user's local coordinates through the Geolocation API and displays the weather data of that location. You can also search for the weather data of cities around the world.
This weather app displays the weather data of any city around the world! Just type whichever city in the search bar and the display will populate the data.
Features:
-
Get local weather data The app gets the user's location data on initialization if the user has location access turned on. The local weather will then be displayed shortly afterwards. If location access is disabled, the app defaults to London, UK.
-
Search for any city in the world The GeoDB cities API allows the app to get city data all over the world which is then used to display the local weather for that area. Search results are sorted by decreasing population order.
-
Get units in either metric or imperial You can get your weather data--including temperature, wind speed, atmospheric pressure, etc.--in either metric or imperial units.
- Vanilla JS
- HTML5
- CSS
In order to setup and work on this project on your own, you will need to:
-
Clone this project:
git clone https://github.com/renchester/top-weather-app.git
-
Once you have cloned this project, you can install the required dependencies by using:
npm install
-
A live demo of the project can be started by using:
npm start
-
Distribution files can be produced using:
npm run build
The app uses the following APIs to receive pertinent data:
Background images used to display the weather are from the following creators on Unsplash:
- Olena Sergienko
- elCarito
- Adam Chang
- Artem Sapegin
- Alex Gindin
- Andreas Brun
- Andrew Seaman
- Antoine Barres
- Peyman Farmani
- Anne Nygard
- Anant Chandra
- Elia Clerici
- Priya Bhagtani
- Magnus Ostberg
- Ben Owen
Weather icons used for the project are from Erik Flowers / Weather Icons.
Loading spinner icon used for the project is from Loading.io
Deployed on GitHub Pages
Developed by Renchester Ramos