azuy212 / mfe-vue-react-angular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi Framework Microfrontend Example

This repository contain an example of microfrontend with different UI libraries/Frameworks (Vue React and Angular) using Webpack Module Federation.

First Time Setup

Install dependencies of each microfrontend repo and also for the root.

yarn install
cd shell && yarn install
cd home && yarn install
cd pdp && yarn install

Run This Project

To run all these microfrontend projects at once, run following command at root of this project

yarn start

OR

Go to individual projects start them, or

yarn start:shell
yarn start:home
yarn start:pdp

Shell App

Shell App is a Vue app which will expose common components (i.e. AppHeader and AppFooter), a function to place Vue component on other apps and service to get product list and product detail to be used in other apps.

It will use its own router to serve list (Home App) and detail (PDP App) pages based on routes.

Home App

Home App is a React app. It will list all products which will be fetched using a service method exposed by shell app.

PDP (Product Detail Page) App

PDP App is an Angular app. It will show product details (image, price, description) which will be fetched using a service method exposed by shell app.

Block Diagram

Multi Framework Microfrontend Block Diagram

About


Languages

Language:TypeScript 64.4%Language:JavaScript 25.4%Language:Vue 4.6%Language:HTML 4.3%Language:SCSS 0.8%Language:CSS 0.5%