2. Installed Custom Builder Package in Multi Repo Angular Project | Micro-frontend | Amar Kumar Ram
Summary
TLDREn este script de video se discute la creación y actualización de archivos en un proyecto de micro frontend utilizando Angular. Se menciona la generación de un archivo `bootstrap.ts` que contiene todo el código anteriormente presente en `main.ts`, lo cual indica una estructura de micro frontend. Además, se actualiza el archivo `angular.json` para asignar un puerto específico a la aplicación remota, que se establece en 4300. Se destaca la importancia de la integración del paquete de compilador personalizado y se hace un llamado a la acción para que los espectadores hagan preguntas en la sección de comentarios, compartan el video y se suscriban al canal para recibir futuras notificaciones. El video concluye con un mensaje positivo y un despedida cordial.
Takeaways
- 📁 Se han creado tres archivos y actualizado cinco en el proceso de configuración.
- 🚀 Configuración de Webpack: se ha creado un archivo de configuración de webpack y otro específico para la aplicación broad.
- 🔄 Se ha generado un archivo `bootstrap.ts` que contiene todo el código que anteriormente estaba en `main.ts`.
- 📄 El archivo `main.ts` ahora simplemente hace referencia a `bootstrap.ts`.
- 🌐 Se ha establecido un puerto asignado, 4200, para el proyecto host en `angular.json`.
- 🔩 Se planea asignar un puerto dedicado a la aplicación remota y se integra un paquete de compilador personalizado.
- 🛑 Se detendrá el servidor de la aplicación remota para realizar la integración.
- 🔍 Se abrirá el archivo `angular.json` de la aplicación remota y se buscará la asignación de puertos.
- 📌 Se asignará el puerto 4300 al proyecto de la aplicación remota en `angular.json`.
- 🤖 Se ha confirmado la instalación y ejecución del paquete de compilador personalizado.
- 🔄 En la aplicación remota, se ha generado una estructura similar a la del host, incluyendo un archivo `bootstrap.ts`.
- ⚙️ La versión actual de Angular es la 16, pero en el script se utiliza la versión 15.
- 📈 Se realizarán futuras mejoras y desarrollos en los próximos videos.
Q & A
¿Qué archivos se han creado y actualizado en el proceso descrito?
-Se han creado tres archivos y actualizado cinco. Incluyen la configuración de webpack, el archivo bootstrap.ts generado y actualizaciones en el archivo angular.json y web.config.js.
¿Cuál es el propósito del archivo bootstrap.ts?
-El archivo bootstrap.ts es generado para contener todo el código que anteriormente estaba en el archivo .ts principal. Actúa como el punto de entrada para la aplicación y es referenciado por el archivo main.ts.
¿Qué es la estructura de la arquitectura de microfrontend que se menciona?
-La estructura de la arquitectura de microfrontend implica que cada aplicación (host y remote) tiene su propio punto de entrada y se ejecutan en diferentes puertos, facilitando la integración y el desarrollo modular.
¿Cuál es el puerto asignado al proyecto en el ejemplo?
-El puerto asignado al proyecto en el ejemplo es el 4200, mientras que para la aplicación remote se asigna el puerto 4300.
¿Qué comando se utiliza para agregar un módulo en Angular?
-Para agregar un módulo en Angular, se utiliza el comando 'ng add' seguido del nombre del módulo.
¿Qué versión de Angular se está utilizando en el ejemplo?
-En el ejemplo se está utilizando la versión 15 de Angular, una versión anterior a la versión actual que es la 16.
¿Cómo se asigna un puerto dedicado a la aplicación remote?
-Se detiene el servidor de la aplicación remote, se ejecuta el comando 'ng add' con la ruta del módulo y se edita el archivo angular.json para asignar un puerto específico al proyecto remote.
¿Qué archivo se edita para integrar el paquete de compilador personalizado en la aplicación remote?
-Se edita el archivo angular.json de la aplicación remote para integrar el paquete de compilador personalizado.
¿Por qué se necesita un paquete de compilador personalizado en el proyecto?
-Un paquete de compilador personalizado puede ser necesario para agregar características o configuraciones específicas que no están disponibles en los compiladores estándar, adaptándose mejor a las necesidades del proyecto.
¿Qué archivo se ve afectado por la integración de la arquitectura de microfrontend en la aplicación host?
-El archivo main.ts se ve afectado, ya que pasa a referirse al archivo bootstrap.ts que contiene el código previamente incluido en él.
¿Cómo se puede seguir el progreso y las futuras actualizaciones de este tutorial?
-Se puede seguir el progreso y las futuras actualizaciones suscribiendo al canal y activando las notificaciones para no perderse ningún video futuro.
¿Cómo se pueden hacer consultas o comentarios sobre el contenido del tutorial?
-Se pueden hacer consultas o comentarios a través de la sección de comentarios del video, donde el creador proporcionará respuestas a las dudas.
Outlines
📂 Creación de archivos y estructura de webpack
Se discute la creación de archivos y la estructura de webpack en un proyecto. Se menciona que se han creado tres archivos y se han actualizado cinco, incluyendo la configuración de webpack y el archivo bootstrap.ts generado. Además, se señala que el archivo men.ts ahora simplemente hace referencia a bootstrap.ts, que contiene todo el código que anteriormente estaba en el archivo .ts.
Mindmap
Keywords
💡Webpack
💡Angular
💡Microfrontend
💡Bootstrap
💡Angular.json
💡Puerto (Port)
💡Custom Builder
💡Package.json
💡Main.ts
💡Remote App
💡Integración
Highlights
Files have been created and updated with webpack configuration.
Bootstrap.ts file is generated, containing all the previous code from .ts files.
Men.ts file now only refers to the bootstrap.ts file.
Micro front-end architecture structure is being implemented.
Angular.json file has been updated to assign port 4200 for the project.
A dedicated port will be assigned to the remote app and integrated with a custom builder.
Server of the remote application is stopped for further configuration.
Command NG and add the rectangular hyphen Architects forward/slash/module by Direction is run.
Angular.json file of the remote app is updated to assign port 4300.
Custom builder packet is installed and executed for the remote app.
Web config.js file is generated in the remote app with the same structure as in the booster.
Bootstrap file is generated in the remote app, containing all the code of the main.ts file.
Main.ts file in the remote app now refers to the bootstrap file.
The development is using Angular 15, one version behind the latest Angular 16.
Further development will be covered in upcoming videos.
Queries can be asked in the comment section for any clarification.
The video encourages liking, sharing, and subscribing for future notifications.
The presenter signs off with a positive note, looking forward to the next video.
Transcripts
foreign
with that we also provide both flag and
provide the assigned World 4200 and will
present as we can see three files have
been created and five files have been
updated so webpack config has been
created webpack broad config has been
created and there is a bootstrap.ts file
has been generated if I go inside source
this file has been generated which has
all the code which earlier dot TS was
having now men.ts is not having any of
this code and just referring this
bootstrap.s fan if you open this see it
is just importing the bootstrap file so
it is a structure of micro front end
architecture and that's why it is just
importing the new created file
bootstrap.ts with that we have multiple
files updated one of that is
angular.json if we go to angular.json
and here you will get the assigned pool
that is 4200 and this has been assigned
for the project poster now we will
similarly assign a dedicated port to
remote app and will integrate this
custom builder packet to it so let's
quickly do that for that we'll stop the
server of the remote application and
we'll run the command NG and add the
rectangular hyphen Architects forward
slash module hyphen by Direction I will
close all the files and will open
angular.json file of remote app and
search for ports as we can see there is
no key with the name Port so will assign
to the project remote app and the port
would be 4300 you can give any port
number I am giving 4300 and will press
enter so it will ask for you if you like
to proceed to install and execute this
custom builder packet will say yes now
we can see that a port key has been
generated in the angular.json file for
the project remote app you see the value
of it and the value assigned to it is
4300 similarly we have web config.js
file what we had in booster so the same
thing has been generated in remote app
as well and the same structure has been
generated in remote that is bootstrap
file has been generated which has all
the code of main.ts file and main.ts
file is just referring to the bootstrap
file one more thing to note here that we
are working on the latest minus one
version of angular current version of
angular is angular 16 and we are working
on angular 15 both the application
whether it's remote time or in the host
app if you open package.json of hostile
then here also we are using angular 50.
further development we will do in the
coming videos if you have any query till
now then please ask in comment section
I'll surely provide answer and if you
like this video then do press the like
button also please do share with your
friends and colleagues and if you are
new to my channel then kindly subscribe
to this channel do not miss any future
notification so let's meet in the next
video till then be happy take care
signing off
foreign
Browse More Related Video
![](https://i.ytimg.com/vi/HSj1CRba8tg/hq720.jpg)
FormData en javascript - Obteniendo datos de un formulario - Como cuando y porque usarlo - JS
![](https://i.ytimg.com/vi/-o5l6zFJ9_o/hq720.jpg)
Dockerize an Angular Application using Nginx
![](https://i.ytimg.com/vi/h4LhoC61x1Q/hq720.jpg)
16. Tutorial Xcode: Imagen Cayendo
![](https://i.ytimg.com/vi/2RC7gizfP3o/hq720.jpg)
7. Deployment of Host and Remote App over Vercel | Microfrontend Communication | Amar Kumar Ram
![](https://i.ytimg.com/vi/aNAlJ1hsP9k/hq720.jpg)
17. Tutorial Xcode: Reproducir sonido con un botón
![](https://i.ytimg.com/vi/Uw9dW5F4z88/hq720.jpg)
Curso Android. Uso de recursos I. Vídeo 23
5.0 / 5 (0 votes)