Coder Social home page Coder Social logo

webpack-module-federation-with-react's Introduction

Microfrontend Architecture Demo using Webpack Module Federation

This repository contains a demonstration application that showcases the implementation of Microfrontend architecture using the Webpack Module Federation feature. The application is built using React and demonstrates how different parts of a web application can be developed and deployed independently while seamlessly integrating with each other.

Features

  • Integration of multiple independent frontend modules into a single application.
  • Seamless communication between microfrontends.
  • Lazy loading of microfrontends for optimized performance.
  • Shared components and resources across microfrontends.
  • Demonstrates the power of Webpack Module Federation in building microfrontend applications.

Architecture Overview

The demo application consists of a host(main) application and a microfrontend module.

  • Netlify Status (Primary)
    • The entry point of the application that integrates the microfrontends and manages their communication.
  • Netlify Status (Secondary)
    • An independent module showcasing a data table. It is loaded into the main application on-demand.

Usage of Webpack Module Federation

Webpack Module Federation is utilized to enable the integration of microfrontends into the main application. It allows each microfrontend to expose selected components and consume components from other microfrontends, all while keeping their code and state separate.

The webpack.config.js files in the host application and each microfrontend module contain the federation configuration, enabling seamless module sharing.

Folder Structure

microfrontend-demo/
│
├── host/
│   ├── src/
│   └── webpack.config.js
│
├── remote/
│   ├── src/
│   └── webpack.config.js
│
└── README.md

Know issues

Guides

webpack-module-federation-with-react's People

Contributors

tmkasun avatar

Stargazers

Indika avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.