https://github.com/hacksore/mfe-demo
testing mfe
https://github.com/hacksore/mfe-demo
Last synced: over 1 year ago
JSON representation
testing mfe
- Host: GitHub
- URL: https://github.com/hacksore/mfe-demo
- Owner: Hacksore
- Created: 2023-10-13T01:08:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-13T02:20:13.000Z (almost 3 years ago)
- Last Synced: 2024-10-04T23:41:20.710Z (almost 2 years ago)
- Language: JavaScript
- Homepage: https://mfe-home-demo.vercel.app
- Size: 124 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React - Vite Federation Demo
This example demos consumption of federated modules from a vite bundle. `host` (react based) depends on a component exposed by `remote` app (react based).
## Running
Install `pnpm` as per instructions provided [here](https://pnpm.io/installation)
Run `pnpm install`, then `pnpm run build` and `pnpm run serve`. This will build and serve both `host` and `remote` on ports 5000, 5001 respectively.
- HOST: [localhost:5000](http://localhost:5000/)
- REMOTE: [localhost:5001](http://localhost:5001/)
`CTRL + C` can only stop the host server. You can run `pnpm stop` to stop all services.