This project was generated with Angular CLI version 14.0.0.
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/
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.
Angular 14.0.0
Node.js 16.10.0
Node Package Manager 7.24.0
RxJs 7.5.0
El nvm es igual, y no es imprescindible, pero ayuda a controlar versiones de angular si lo necesitas
Node Version Manager 1.1.12
npm install --save bootstrap
@import '../node_modules/bootstrap/scss/bootstrap';
install bootstrap popper.js
"scripts": [ "./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js" ]
npm install -g sass
sass --watch ./styles.scss ./styles.css
npm install leaflet
map.component.scss
@import '~leaflet/dist/leaflet.css'
No hay que olvidar que para un funcionamiento correcto de la hoja de estilos hay que modificar el angular.json
"styles": [ "src/styles.scss", "src/weather/components/map/map.component.scss" ],
"scripts": [ "./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js", "./node_modules/leaflet/dist/leaflet.js" ]
npm install --save-dev @types/leaflet
src/assets/leafMET.js
La organización de carpetas y archivos ha sido estudiada para ofrecer una búsqueda eficiente dentro del proyecto
Se han utilizado las apis: -OpenWeatherMap -Aemet -RestCountries -OpenDataSoft
-Aemet -OpenWeatherMap
Los usuarios logueados se guardan en sessionStorage Los usuarios registrados se guardan en localStorage
Al ejecutar ng serve ó ng serve -o, se abrirá el navegador predeterminado en tu equipo