Skip to content

This repo has two apps, remote react components app and a host vite app, using module federation with devcycle to test usecases

Notifications You must be signed in to change notification settings

DevCycleHQ-Sandbox/module-federation-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

module-federation-poc

This is a proof of concept for using module federation to create a host app that can load remote componenets.

To run this project, run npm run build in the todo-component and then run npm run preview in the todo-components. This will start the todo-component in a local server port 4173.

Run the host app by running npm run dev in the host-app. This will start the host app in a local server port 5173.

Navigate to http://localhost:5173/ in your browser to see the host app.

You will need to make sure to add a .env file in both apps with the DEVCYCLE_SDK_KEY variable and change the variable key in the todo-components/src/components/List.tsx file to match the key of a variable created on the devcycle dashboard.

About

This repo has two apps, remote react components app and a host vite app, using module federation with devcycle to test usecases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published