Monorepo micro frontend example with Rush, SingleSpa, React, Vue, Angular and Webpack 5 Module Federation
Install rush globally
npm i -g @microsoft/rush
Install dependencies
rush update
Build applications
rush build
Run locally for development
rush start
Run locally for testing production distributions
rush prod
The apps will run on the following ports:
- aragorn (remote angular app):
http://localhost:5000
- gandalf (remote react app):
http://localhost:5001
- saruman (remote react app):
http://localhost:5002
- legolas (remote vue app):
http://localhost:5004
- middle-earth (host/shell app):
http://localhost:9000
- rivendel (backend for storing remote metadata):
http://localhost:9999