Skip to content

This project is a simple weather app that uses an API from OpenWeather. It is built with Angular as framework, and uses TypeScript, HTML and SCSS as languages. The app is fully responsive for both mobile and desktop devices.

Notifications You must be signed in to change notification settings

LauraBigoni/WeatherApp

Repository files navigation

Preview on Netlify Status

logo-readme WeatherApp README

A simple Weather App with an Homepage where there are all Italian province showing the actual weather

home-demo

and a Province page where there are the weather details for every 3 hour of the day of the
selected province with the possibility to change the day (Max 5 day forecast) in the dropdown-menu.

provincia-demo

Setup

This project was generated with Angular CLI version 14.0.2, Angular router and Bootstrap.

Api Reference

For this project i used OpenWeather free API "5 day weather forecast".

Endpoints used:
Required: lat, lon, appid.
Optional: units(standard, metric and imperial), lang.

Files

In this project i included a JSON file with all the Italian provinces, an example is shown below:
[ { "city": "Firenze", "lat": "43.7714", "lng": "11.2542", "region": "Toscana" } ]

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/.
The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component.
You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/<project-name> directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice.
To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the
Angular CLI Overview and Command Reference page.

Credits

MIT License

License: MIT

About

This project is a simple weather app that uses an API from OpenWeather. It is built with Angular as framework, and uses TypeScript, HTML and SCSS as languages. The app is fully responsive for both mobile and desktop devices.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published