Speed up your Angular serve and build times with Module Federation and Nx

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

ความคิดเห็น • 29

  • @SunilMekala
    @SunilMekala ปีที่แล้ว

    Nice content and great explanation as always. Thank you :)

  • @danieldouglas210
    @danieldouglas210 ปีที่แล้ว +2

    Great video and explained the core concepts well. I wonder if there are any more advanced videos covering more realistic scenarios such as splitting out an app with NgRx state management and authorisation?

  • @vOnez212
    @vOnez212 2 ปีที่แล้ว +1

    This was great. Thank you!

    • @nxdevtools
      @nxdevtools  2 ปีที่แล้ว

      Glad it was helpful!

  • @aldog1984
    @aldog1984 2 ปีที่แล้ว +1

    Great insights, thank you 💪

    • @nxdevtools
      @nxdevtools  2 ปีที่แล้ว

      Glad you enjoyed it!

  • @Hackmajoris
    @Hackmajoris 2 ปีที่แล้ว +1

    Thank you!

  • @MrSeromarinds
    @MrSeromarinds 2 ปีที่แล้ว +3

    Thanks for sharing this kind of content. I really loved the content and learned A LOT with this short video. I just want to ask: How can we manage the global state with tools like NgRx and module federation? Through libs?

  • @robrabbit8288
    @robrabbit8288 2 ปีที่แล้ว

    noice, thank you!

  • @escorpianoyqueee
    @escorpianoyqueee 2 ปีที่แล้ว

    5:40 when I try this, I get an error: " Cannot read properties of null (reading 'length')" -> in an empty angular application created just now, with no libraries, just the app. When I pass the verbose parameter, I get: "Error: ENOENT: no such file or directory, open {blablablah}\app.routes.ts". There is no routes file indeed, in fact none of my nx applications has a route file, it is never created by default at least.

    • @nxdevtools
      @nxdevtools  2 ปีที่แล้ว

      Can you open an issue on our repo, ideally with a small reproduction repository? That'd be amazing, so we can look into it 🙏🏻

    • @madipta
      @madipta ปีที่แล้ว

      I had same problem, so how to fix this?

    • @escorpianoyqueee
      @escorpianoyqueee ปีที่แล้ว

      @@madipta it's bugged. The solution for me was to delete the app, then use the create new HOST, this way you don't need to transform anything. Simply start with an empty app

  • @gbrivate
    @gbrivate ปีที่แล้ว

    Very nice one, how about call api rest from the server without showing it at the browser?

  • @zebcode
    @zebcode 10 หลายเดือนก่อน +1

    Explained really well except, I don't know what the benefit of module federation is? Perhaps I missed it?

    • @hendrx
      @hendrx 15 วันที่ผ่านมา

      you have multiple small apps that you're routing through that are loaded lazily

  • @MarvinYoong
    @MarvinYoong ปีที่แล้ว

    This is great. My one question is, Is there any way to share singleton services between the remotes/host?

  • @gerardcastell6063
    @gerardcastell6063 2 ปีที่แล้ว

    Really nice video! I have a question, do we need to add a baseHref to the remote apps build options in order to find the path properly if we serve the production folder in a NGINX server?

    • @nxdevtools
      @nxdevtools  2 ปีที่แล้ว +1

      Hey. Yeah if you look at the deployment section later in the video, you'll see that the prod webpack config is being adjusted to specify the endpoint where the apps can be found.
      Now in this one I just used a simple local http server to for the sake of simplicity. You might also define some path mappings/redirects in ur NGINX config - Juri

    • @gerardcastell6063
      @gerardcastell6063 2 ปีที่แล้ว

      @@nxdevtools nice! thanks for the quick answer. I was also wondering about how we can combine this with the affected, since the target is related to the HOST app and you force implicit dependencies, how you can take advantage of the affected technology? Thanks!

  • @cassiomansini
    @cassiomansini 2 ปีที่แล้ว

    Nice content! How could we use angular-material with this approach?

    • @nxdevtools
      @nxdevtools  2 ปีที่แล้ว

      Can you elaborate?

  • @carlotadias9335
    @carlotadias9335 7 หลายเดือนก่อน

    Is module federation benefit just to improve serve time locally?
    I suppose it doesn't affect build time or serving times in built applications.

  • @howdy_suraj
    @howdy_suraj 10 หลายเดือนก่อน

    In my case remotes are not getting built while building the Host app, i have added remotes in implicit dependencies as well ?

  • @sbxsbx
    @sbxsbx 6 หลายเดือนก่อน

    Question where May put a component in every single module, in the remote module or in the library?? That I don't get it

  • @arthurfedotiew3609
    @arthurfedotiew3609 2 ปีที่แล้ว +2

    @Juri Strumpflohner, why nx generator for remotes doesn't handle implicitDependencies set-up by default when you explicitly specify --host option?

    • @nxdevtools
      @nxdevtools  2 ปีที่แล้ว +2

      It probably should and something we might want to improve for sure 👍. Thanks for the feedback

  • @AjithKumar-r2p
    @AjithKumar-r2p ปีที่แล้ว

    Hi, You doing great!. I have small doubt in webpack.prod.config.js ---> remotes array that is how it works? Can you explain this?