This project was generated with Angular CLI version 15.1.5.
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.
-
Crear una cuenta gratis por 1 año en https://aws.amazon.com/es/
-
Una vez creada la cuenta Generar token en la sección de Security Credentials Access Key. Guárdalas para un paso mas adelante.
-
Bajar el código del repo.
-
Correr un npm i.
-
Setear el API key para que serverless pueda subir tu código: serverless config credentials --provider aws --key <##Llave generada en paso 2> --secret <## Secret generado en paso 2> -o
-
Correr un ng build.
-
Ir al serverless.yml y modificar el path de los archivos generados en el dist, si fuera necesario y guardar los cambios.
-
Correr el comando serverless deploy
-
Una vez publicada la infraestructura necesaria en AWS, correr el comando: serverless syncToS3
-
Para obtener el URl donde se esta publicado tu Angular app, correr el comando: sls domainInfo
-
Navegar a tu URL para ver tu app corriendo en aws.
-
Si quieres reflejar cambios en tu código, haz los cambios, salvalos, corre el paso 6, luego el paso 9 y por ultimo el comando: serverless invalidateCloudFrontCache para actualizar el cache de aws y navega de nuevo a tu app.
-
Si quieres remover tu app de AWS, dirígete al S3 bucket que creaste y vacíalo, luego puedes correr el comando: serverless remove.