Skip to content

AywinK/Weather-Forecast-Web-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Weather-Forecast-Web-App

Description

A weather application which allows travellers to search for the current weather and the five day forecast for multiple cities, so that they can plan trips accordingly.

Application usage on a large screen is demonstrated below.
App Demo

The gif below showcases the responsive layout at various device sizes.
Responsive Demo

Deployment

The app is deployed using GitHub Pages at: https://aywink.github.io/Weather-Forecast-Web-App/

Usage

End User

Search for the weather forecast using the search box. Specify the country code (seperated by a comma after the city name) to always obtain the correct weather. View history in the dropdown menu by clicking the search box. Recent searches appear at the top. Alternatively narrow down previously searched cities with the autocomplete feature. Note that only valid cities will be saved to the search history. Clear all saved searches by clicking on the rubbish bin icon in the top right of the app.

The user is able to scroll through the five day forecast using the buttons found at the bottom. The buttons disappear to indicate when the user has scrolled to the beginning or the end.

Development

Files are named appropriately and placed in a logically structured folder layout. The codebase includes comments and appropriately named expressions, so that the code is easy to understand. The JavaScript file only contains functions with no variables in the global scope that could interfere with future development. The app.js file also includes logic for a custom carousel component.

The initial layout of the webpage consists of the header, search form, and footer. Containers for the current weather and five-day forecast sections are also included in the layout; however, the containers are initially hidden using CSS.

Bootstrap and jQuery UI frameworks, along with a custom styles sheet, are used to style the web application.

The application is developed using jQuery, jQueryUI (Autocomplete) and moment.js third party APIs. Weather data is obtained using the OpenWeather API.

Credits

License

MIT License

About

A weather forecast app which allows travellers to search for the current weather and the five day forecast for multiple cities, so that they can plan trips accordingly.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published