项目作者: omata48

项目描述 :
Web application to view current and five day forecast for any city in the United States.
高级语言: JavaScript
项目地址: git://github.com/omata48/Weather-Dashboard.git
创建时间: 2020-06-27T17:46:26Z
项目社区:https://github.com/omata48/Weather-Dashboard

开源协议:MIT License

下载


Weather Dashboard

license-badge

Link to Deployed Site

Description

Web application to view current and five day forecast for any city in the United States. Querying for a city keeps a history of previously searched cities. By selecting a city from the search history, users are able to quickly search for the city selected.

Table of Contents

Function
Usage
License
Contributing
Questions

Function

Makes AJAX queries to the Open Weather API to retrieve weather data. Uses two calls in order to get the latitude and longitude of the city and then to get the forecast for the city chosen. Additionally, the API also passes the images used to show the weather as an icon.

Additionally, utilizes local storage to keep track of the search history. This is stored in the user’s browser and is pulled from on refresh. If there is no items in the local storage, a default city is filled.

Usage

While developing, you can open a preview of the webpage from your editor to your local browser (preferred Chrome to work with the developer tools).

You can also visit this link to visit the deployed version: Site App

License

Licensed under the MIT license.

Contributing

For any improvements, feel free to fork the code and submit a pull request.

Questions

View my other projects on my GitHub Profile
For additional questions feel free to email me at omata48@outlook.com