Micro Frontend in Angular with Dynamic Module Federation using NX!

  Рет қаралды 9,033

Fun Of Heuristic

Fun Of Heuristic

Күн бұрын

Пікірлер: 33
@LogUp-uf1th
@LogUp-uf1th 8 ай бұрын
really great explanation, Thanks! I tried various sources and videos before stumbling upon your video, almost gave up learning what Microfrontend is. Now it's really clear and easy to understand!
@VivekSharma24290
@VivekSharma24290 Жыл бұрын
Subrat, Can you also make a video on how to load a remote module without using routing technique from NX. We can use the component way to load the module. Also, can you also cover on how to load environment specific files, like config.json/config.dev.json etc of the remote module from host application. Thank You.
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Yes, soon
@sakarsr
@sakarsr Жыл бұрын
Thank you for making this video on Micro Frontend. Just tell us how to deploy Micro Froent end to serve. Do we have to deploy each microfronter to a different server?
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Yes we should deploy each MFE separately.
@AbdulRahim-lc6yb
@AbdulRahim-lc6yb 11 ай бұрын
hi, your presentation is good, can you make a video how to dockerize angular micro frontends
@remiguillard3773
@remiguillard3773 9 ай бұрын
Is this possible to make a video to make a shared auth ngrx store between mfe ?
@SatyamSoni1990
@SatyamSoni1990 Жыл бұрын
can custom event be used for communication between components?
@readerguide2885
@readerguide2885 Жыл бұрын
Will "ngx-build-plus": "^14.0.0", be in its package.json
@ИванКудря-ь3ш
@ИванКудря-ь3ш Жыл бұрын
Great explanation, thank you! I have a question. How can I use module federation to combine several applications on the same route in the shell app. I would like to create a page with three mfe applications inside.
@ИванКудря-ь3ш
@ИванКудря-ь3ш Жыл бұрын
Found the answer in your another vid, thank you
@transformerduncan
@transformerduncan Жыл бұрын
If I want to add ngrx to the remote app how would I configure this? When I try to create the rootstore in the remote app and the feature store in a library, the store fails to be injected
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
You should use the root store in the shell/host app and feature store in your remote app then it should work.
@transformerduncan
@transformerduncan Жыл бұрын
@@FunOfHeuristic Although for local testing I have a dev-shell. For production I will not be managing the shell and my org is not quite there in terms of actually leveraging a full monorepo. I know others are searching for this answer but no one has done this. If you could do a video on how to register the rootstore on the entry component of a remote app I will be sure to send the video to everyone at my organization (100,000)+ people.
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Thanks for the kind message let me try to do it.
@transformerduncan
@transformerduncan Жыл бұрын
Any luck??@@FunOfHeuristic
@krishnakumar-n6h
@krishnakumar-n6h Жыл бұрын
Hi Subrat, Can we use module federation with Angular 10 or lower versions? I have an existing mono repo app which i need to convert into MFE. Please suggest.
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Yes if you are using webpack 5 which is the case for angular 10 you can use module federation, As Module federation is a concept of webpack not angular.
@GiacTucc
@GiacTucc Жыл бұрын
I have an error and I can't figure out why, i cloned your code, the error is : \entry.component.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. Can you help me?
@fuchengnian3299
@fuchengnian3299 Жыл бұрын
add "src/**/*.ts", at include area file=> micro-frontend-dynamic-module-federation\login\tsconfig.app.json
@codehan
@codehan Жыл бұрын
How would you implement module federation to expose the whole app as well es single components of that app? Is this possible with a standalone NX repository with a single Angular/React app? The remote should be in a separate standalone repo and the host in another standalone repo. It should be possible that the host comsumes the remote micro frontend as well es the remote micro components.
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Hey @codehan, absolutely, it's totally doable! When you expose a micro frontend, you're essentially sharing specific components. These components might have their own child components linked to them. Now, when it comes to exposing, you have options. You can either expose each component individually, or you can wrap them up with a parent component and expose the entire application. As for developing the application in different repositories, yup, that's possible too. While a monorepo aids in development, when it comes to deployment, you're looking at two distinct applications. So, yes it's absolutely possible
@codehan
@codehan Жыл бұрын
Thanks for you reply :) Currently we expose our react app (the App.tsx) wrapped as a web component as described by Manfred Steyer, since this is the only way to consume the react app within the Angular host. But now single components needed as well and the question is how to expose them as web components as well. Currently a single remoteEntry.js is generated and used in a complex way within the Angular shell. I assume that this remoteEntry.js also includes the single components then. Currently thinking about (somehow) generating multiple remoteEntry files. One for the entire app and one for the needed components. Im not sure if Nx allows non libs to be exposed that easy..
@athero02yt3
@athero02yt3 9 ай бұрын
Hi, how can i deploy mfs to azure?
@kavyashreebj5848
@kavyashreebj5848 Жыл бұрын
Thanks a lot for the video! Since we have a single package.json file and a single node_modules folder at root level that is shared, is it not a monorepo architecture? And if I need to install a package for one application only, is it possible?
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Yes, it's a monorepo. If you install any packages that won't be added to every app, they will only be included in the build file of your app if you are using them. As a result, you can deploy each app independently.
@kavyashreebj5848
@kavyashreebj5848 Жыл бұрын
@@FunOfHeuristic Thanks for the response! So is this mono repo and micro frontend? Or just monorepo? To call an angular app as micro front end, should we mandatorily have angular elements like you had in previous videos?
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
The best way is by using Module Federation. In the previous videos, I used Angular Elements, which is another approach to achieve microfrontends. In most scenarios, you will likely use the Module Federation approach, but if you want to expose a CSS component library, then the Angular Elements way will be better
@kavyashreebj5848
@kavyashreebj5848 Жыл бұрын
@@FunOfHeuristic that makes sense. Would love to see more of such videos. Thanks for the detailed explanation 🙂
@rutujagholap7055
@rutujagholap7055 Жыл бұрын
Hello subrat, thank you for videoes. I have a question, I have already one project in angular and I would like to create a new project and use that new project as MFE inside my old project. How should I proceed?
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
You can convert your project to nx and can continue as shown in the video or you can use @angular-architects/module-federation with your old application, this package is kind of similar to what we have in video. If it's hard to understand let me know I will make a video for this.
@FunOfHeuristic
@FunOfHeuristic Жыл бұрын
Both use module federation, you can check my video on dynamic model federation it's already out.
@tanmaydey3448
@tanmaydey3448 11 ай бұрын
How to build the micro frontend for production
Five Module Federation/Micro-Frontend Mistakes
28:09
Jack Herrington
Рет қаралды 50 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Angular Microfrontends with NX and Module Federation
25:44
Sebastian Persson
Рет қаралды 19 М.
Angular Module Federation Micro-FE Speed Run
14:41
Jack Herrington
Рет қаралды 17 М.
What is the use of Micro Frontend and its benefits | Micro Frontend
9:12
Micro Frontends - NX and Module Federation
23:27
Russell Canfield
Рет қаралды 8 М.
Best of CES 2025
14:50
The Verge
Рет қаралды 544 М.
Vite and Module Federation Makes Micro-Frontends EASY!
27:36
Jack Herrington
Рет қаралды 101 М.