The goal of this app is to provide users with the current weather data & 5-day forecast for different cities. I want users to be able to visit a page and be able to search for any city in the world and find this data. I also want users to be able to revisit this page and find a list of the last 10 cities that they selected. They should be able to click on an item from this list and view the weather data for that city.
This app successfully fulfills these needs. From this project, I learned and practiced the following skills/concepts:
Visit the site here: https://danrcross.github.io/daniel-weather-dashboard/
Here are some screenshots demonstrating the app's functionality:
The main page when site is visited for first time:
The site when a city is searched for:
The site when a search result is selected:
The site when a city has been saved and added to list; new search can be done:
The local storage saves user's cities:
The site when reloaded and cities are retrieved from local storage:
The site when a saved city is selected:
Credit due to following APIs/ libraries and their documentation:
MIT License
Copyright (c) 2024 Daniel Cross
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.