thiagojedi / module-federation-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module Federation and Micro Frontend examples

Installation

  • clone the repo
  • cd js-host npm i
  • cd react-host npm i
  • cd nextjs-host npm i
  • cd remote npm i

Development FM

  • cd remote npm run start-mf
  • cd js-host npm start
  • cd react-host npm start
  • cd nextjs-host npm start

You should be able to load the Counter exposed as FM inside the consumers.

Development MF

  • cd remote npm run start
  • Open html-host/index.html in a browser tab.

You should be able to load the Counter exposed as simple js chunk inside html-host.

About


Languages

Language:JavaScript 76.2%Language:HTML 15.0%Language:TypeScript 8.8%