This repo is meant as PoC for the usage of Microfrontends with Module Federation.
Note
This is not a monorepo.
.
├── .gitignore # Git Ignore
├── react-remote # Federated module
├── vue-remote # Federated module
├── shell # Host for Federated modules
└── README.md # Project README
- Under /shell you will find a React frontend that works as a host for the federated modules
- Under /react-remote you will find a React frontend with some widgets exposed as federated modules
- Under /vue-remote you will find a Vue frontend with some widgets exposed as federated modules
Every module has:
.envfile to configure the PORT of the Vite server- A
vite.config.tswhere the Federated modules are exposed and configured
Every project should have his own .nvmrc please follow the version described there if you are not already using it.
-
React remote
cd react-remote npm i npm run dev -
Vue remote
cd vue-remote npm i npm run dev -
Shell
cd shell npm i npm run dev -
Now you can open the shell at http://localhost:5175