Working implementation of Mirco-frontend Web App using React, Vue and Nx as build framwork using Webpack5 Module Federation
To implement microfrontend architecture we used:
- Webpack 5 Module Federation
- Microfrontend apps resides in Nx monorepo
- Container and Auth app built using
React
- Dashboard app built using
Vue.js
Install dependencies
npm install
To run whole app with container and other microfrontends:
npm run start:all
To run one microfrontend separately, for exmample auth
:
npx nx run auth:serve
List of microfrotend apps, as of now:
Microfrontend | App Name | Url |
---|---|---|
Container | container | http://localhost:8081/ |
Auth | auth | http://localhost:8082/auth/signin |
Dashboard | dashboard | http://localhost:8083/dashboard |
- Production setup for Mirco-frontend app
- Dockerized application
- CI/CD pipeline