Test project for testing microfrontends and module federation
Have a particular look at the following files:
readme.md
: Shows how to install dependencies and how to start the exampleremote\webpack.config.js
: Microfrontend configshell\webpack.config.js
: Shell configshell\src\app\app.routes.ts
: Lazy route for microfrontendweb-ang\src\app\app.module.ts
: Angular Web Component
- Install packages:
npm i
in every subfolder - Start Micro Frontend (/remote):
ng serve
- Start Angilar Web Component (/web-ang):
ng serve
- Start React app (/pgd):
npm run start
- Start Shell (shell):
ng serve
- Make sure
remote
,web-ang
andpgd
are started beforeshell
is loaded into the browser - Use the shell app at
4200
port and check hyperlinks in the header
- https://www.youtube.com/watch?v=EGdbmj-kj88 - [English]
- https://www.youtube.com/watch?v=TNmc8sOldVU - [Russian]
- https://www.angulararchitects.io/en/aktuelles/the-microfrontend-revolution-module-federation-in-webpack-5/ - whole series (10 parts)