Skip to content

Small micro frontend example using Vite and Module Federation

Notifications You must be signed in to change notification settings

mlezcano1985/vite-mfe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micro Frontend example using Vite + Module Federation

Small micro frontend example using Vite and Module Federation. There are two applications: React and Vue.

Applications

Type Port Description Url
Host 5000 The React application. http://localhost:5000
Remote 5001 The Vue application. http://localhost:5001

The goal is to render the Vue <Counter /> component in the React application.

mfe

Prerequisites

NodeJS

Steps

For each applications do:

  1. Install dependencies

    npm i
  2. Build the application

    npm run build
  3. Run the local build result

    npm run preview