This example demos consumption of federated modules from a vite bundle. The Shell
app (Vue based) displays components exposed by the Axonius
app (Vue based) and by the AxoniusX
app (React based).
- Install node dependencies for shell application and for each child application. That is, for both
Shell
,Axonius
andAxoniusX
,cd
to the root directory and runnpm i
. - At the root directory, run
pnpm build
andpnpm serve
. This will build and serve theShell
app on port 5000, theAxonius
app on port 5001, and theAxoniusX
app on port 5002.
- HOST (Shell): localhost:5000
- REMOTE (Axonius): localhost:5001
- REMOTE (AxoniusX): localhost:5002
To develope each app (either child or shell), cd
to its root directory and run pnpm run dev
.
CTRL + C
will only stop the shell app. Run pnpm stop
from the shell app root directory to stop all other apps.