A simple Weather App with an Homepage where there are all Italian province showing the actual weather
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.
This project was generated with Angular CLI version 14.0.2, Angular router and Bootstrap.
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.
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" } ]
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.
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
.
Run ng build
to build the project. The build artifacts will be stored in the dist/<project-name>
directory.
Run ng test
to execute the unit tests via Karma.
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.
To get more help on the Angular CLI use ng help
or go check out the
Angular CLI Overview and Command Reference page.
MIT License
- Laura Bigoni Copyright© 2022