root path: cd angular-mfe-example angular-mfe-example>
Then only do this steps.
install node js & npm
add angular using "npm install @angular/cli"
using following command:
npm install
terminal one
ng serve mfe1
terminal two
ng serve host
terminal three
ng serve mfe2
then run the below url in browser http://localhost:4200
Application steps:
- Workspace creation ng new angular-mfe-example --createApplication="false"
- Create host app ng g application host --routing --style=css
- Create child app ng g application mfe1 --routing --style=css
- Module federation for host and child
ng add @angular-architects/module-federation --project host --port 4200
ng add @angular-architects/module-federation --project mfe1 --port 5000
ng add @angular-architects/module-federation --project mfe1 --port 5001
change the root path to TestAPI
TestApi> dotnet run