Skip to content

sasoria/microfrontend-modules-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microfrontend-modules-demo

This demo takes advantage of EcmaScript Modules (ESM) to do client-side composition of microfrontends. Express is used for serving assets, but ideally one would have a dedicated asset server handling it (see eik.dev).

Features

  • Client-side composition of microfrontends
  • Client-side routing that consist of one or more microfrontends

Usage

  • Build each microfrontend with npm run build
  • Start each microfrontend with npm run server
  • Start the shell with npm start

The app should now be available on http://localhost:8080.

Shared dependencies

Each app shares react dependencies through absolute ESM imports that are cached in the browser. They attempt to fetch both react and react-dom from Skypack, thus reducing the bundle size considerably.

About

Client-side composition of microfrontends

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published