Is built using JavaScript, Html, Css, faker, Webpack
Steps to start.
git clone, npm install and npm start repo https://github.com/Amol-Bhole/module-federation-products.
git clone, npm install and npm start repo https://github.com/Amol-Bhole/module-federation-cart.
npm install.
npm start.
dev server is initialized on port 8080. ModuleFedrationPlugin request 2 remote modules. namely products and cart. Hosted at http://localhost:8081/remoteEntry.js" and http://localhost:8082/remoteEntry.js respectively.
Microfrontends containers Global Context tobe passed to children SubApps.
Is dynamically importing bootstrap.js to allow webpack's ModuleFedrationPlugin to request dependencies asynchronously.
mount function is imported from productsMount and cartsMount SubApps (configuered using Webpack's ModuleFedrationPlugin)
Mounted the Carts and Products sub app using there respective mount functions, by passing element (from container) and containersGobalContext
Once we run Container repo, output will be as belows