Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History
 
 

dashboard-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Dashboard Example

This example shows the dashboard running in read-only mode.

Please follow instructions here to boot and run the dashboard: https://www.npmjs.com/package/@module-federation/dashboard-plugin

  • app1 exposes a red <button>App 1 Button</button> component.
  • app2 exposes a blue <button>App 2 Button</button> component.

Running Demo

Run the Dashboard Docker container as per instructions, the docker image and instructions can be found at hub.docker

Then run yarn build and reload the dashboard to see the end result

Run yarn start. This will build and serve both app1 and app2 on ports 3001 and 3002 respectively.

Notice that app1 will asynchronously load app2's button and vice versa.