Skip to content

NipunaMarcus/module-federation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module Federation with Vite and React

This is a sample with multiple packages with multiple applications to simulate use case for developing an application using module federation.

Blog:

Getting Started

Prerequisites

  • Node: v16.9.0
  • NPM: 7.21.1

Build & Run the project

Following command will install the dependencies.

npm i

Following command will build all the packages.

npm run build

Next open up two terminals and enter each of following commands to run each of the projects.

App

cd packages/app
npm run preview

Home

cd packages/home
npm run start

Running applications can be access through these URLs

Host Application

http://localhost:5001/

Remote Application 1 Home page test application can be access from here.

http://localhost:5000/

Entry file for the javascript module for shared component.

http://localhost:5000/assets/homepage.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published