Skip to content

Sampath-vi/remote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote app

Installation

  1. git clone [email protected]:Sampath-vi/remote.git
  2. cd remote; npm install; npm start; - The app should start on port 8081.
  3. Expose this port via ngrok or use the localhost and copy the URL. This URL will be necessary for the host app to acccess these resources.

Directory

  • This app consists of a Counter and Health component which will both be reused in the host app.
  • The Counter component just increments the state locally.
  • The Health component uses mobx store to fetch the config-backend health and display the result.

Webpack

  • The resources are being exposed via webpack in a file called remoteEntry.js. Once the server is up, navigate to https://localhost:8081/remoteEntry.js.
  • Components are being exposed and configured in webpack.config.js - webpack.config.js
  • More on Module Federation - module-federation

Host

Host App

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published