Skip to content

This repository features a webpack 5 moule federation based microfront end implementation with React. Event based communication between microfrontend's components. Dyanamic component injection based on events bus across microfrontend..

Notifications You must be signed in to change notification settings

nixonnix/modulefederation-micro-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shared App Shell,

  • This example is written using webpack5 module federation to share compoents at runtime

This example demos a basic host application loading remote component.

  • shell is the App Shell
  • dashboard - standalone application
  • order - standalone application
  • sales - standalone application - home for many components
  • Invoice - standalone application

Running Details

Data Transmission

  • All the data transmissions occurs over new BroadcastChannel("data_channel");
  • Data should be transmitted as an object of type: {identifier for event type} and value: {value}
  • Type can be nomenclatured as {context}:{dataType} - e.g, - 'app:title'
  • example bc.postMessage({ type: 'app:title', value: 'Dashboard' });

#TODO

  • Unit Test
  • End-to-End Test

About

This repository features a webpack 5 moule federation based microfront end implementation with React. Event based communication between microfrontend's components. Dyanamic component injection based on events bus across microfrontend..

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published