An open API service indexing awesome lists of open source software.

https://github.com/nihaadk/microfrontend-js-webpack-example

Microfrontend Example with Webpack (Module Federation) and JavaScript
https://github.com/nihaadk/microfrontend-js-webpack-example

javascript microfrontend webpack webpack5 webpack5-module-federation

Last synced: 9 months ago
JSON representation

Microfrontend Example with Webpack (Module Federation) and JavaScript

Awesome Lists containing this project

README

          

# Microfrontend Example with Webpack (Module Federation) and JavaScript

This project demonstrates a simple implementation of microfrontends using Webpack's Module Federation. It showcases how to split a web application into multiple independently deployable modules that can share code and dependencies dynamically. The example uses JavaScript to define host and remote applications, enabling seamless integration and communication between them. This approach promotes scalability and reusability in large-scale web applications.

## How to Run the MicroFrontend Example

To run the MicroFrontend example, follow these steps for each project (`container`, `cart`, and `products`):

1. Navigate into the project folder:
```bash
cd

2. Install the required dependencies:
```bash
npm install

3. Start the project:
```bash
npm start