microfrontend-react-event-bus
v1.0.4
Published
Here’s a description tailored for your GitHub repository based on the project setup:
Downloads
319
Readme
microfrontend-react-redux
Here’s a description tailored for your GitHub repository based on the project setup:
Repository Description
Microfrontend E-commerce Platform with React, Redux, Routing, and Webpack Module Federation
This repository showcases a modular e-commerce platform built with microfrontends using React and Redux. The project demonstrates how multiple independently deployable React applications (microfrontends) can collaborate seamlessly using Webpack Module Federation for dynamic module sharing, React Router for routing, and Redux for state management.
Features
- Modular Architecture: Three microfrontends—Shell App, Product Catalog, and Shopping Cart—integrated via Webpack Module Federation.
- Shared Redux Store: Centralized state management for sharing state across all microfrontends (e.g., product additions in the cart).
- Dynamic Routing: Shell App handles routes dynamically using React Router for product catalog and shopping cart pages.
- Isolated Development: Each microfrontend can be developed, deployed, and maintained independently.
- Lazy Loading: Microfrontends are loaded on demand with React's
Suspense
for better performance.
Project Structure
- Shell App: Central app that handles routing and integrates the microfrontends.
- Product Catalog: Displays a list of products with the ability to add items to the cart.
- Shopping Cart: Displays products added to the cart, showcasing shared state with the product catalog.
How to Run
Clone the repository:
git clone https://github.com/sumangcodes/microfrontend-poc.git cd microfrontend-poc
Start each microfrontend:
- Shell App:
cd shell npm start
- Product Catalog:
cd product-catalog npm start
- Shopping Cart:
cd shopping-cart npm start
- Shell App: