Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build single angular module and deploy it separately?

We have a big angular application containing 1000 modules. While deploying application we have to deploy the whole app from dist this approach is not good for any large application.
Is there any way to build a specified module from application and deploy it separately. Like we have CM and PM separate two modules now I want to build CM and deploy it's generated stuff on the server.
we use bazel to build separate module but deployment is very hard with @bazel.

like image 533
Ram Jawade Avatar asked Apr 09 '26 23:04

Ram Jawade


1 Answers

I was looking for the same solution and was heard about micro frontend where we can deploy each module independently. I found this medium article.

https://medium.com/bb-tutorials-and-thoughts/how-to-implement-micro-frontend-architecture-with-angular-e6828a0a049c

And you can check this Nx freamwork as well. https://nx.dev/getting-started/angular-standalone-tutorial.

https://nx.dev/recipes/adopting-nx/migration-angular#transforming-an-angular-cli-workspace-to-an-nx-workspace

Hope this helps :) And if you already got something better than this, please let me know as well :)

like image 83
Aarti Kanungo Avatar answered Apr 11 '26 17:04

Aarti Kanungo