Skip to content

rkpattnaik780/module_federation_poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module Federation POC

This repo contains code demonstrating module federation with React components. Host UI imports components dynamically from the other two react apps here - css components and material components.

Installation

# Clone the repository
git clone https://github.com/rkpattnaik780/rk-votingappfcc.git


# Navigate to each sub-folder in the repository individually and install npm dependencies

cd host-ui 
yarn

cd material_components
yarn

cd css-components
yarn

Running federated modules locally

# Run material_components as a federated module

cd material_components
yarn federated

# Run css-components as a federated module

cd css-components
yarn federated

# Run host-ui

cd host-ui
yarn federated

Visit http://localhost:8082/ in your browser, you can see the host ui importing navbar from material_components and footer from css-components.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published