Skip to content

Comprehensive micro-frontend implementation showcase using Module Federation. Demonstrates advanced patterns including cross-app routing, event bus architecture, error handling, and shared state management with Redux.

Notifications You must be signed in to change notification settings

Jaganath-MSJ/Micro-Frontend

Repository files navigation

Micro-Frontend Architecture

A modern, scalable micro-frontend application built with Module Federation Enhanced, Rsbuild, and React 19. This project demonstrates how to orchestrate multiple independent applications into a seamless user experience.

🚀 Quick Start

Get the entire system running in minutes.

# 1. Install dependencies for all apps
npm run install:all

# 2. Start the Host and all Remotes
npm run dev:all

For detailed setup instructions, including manual start and prerequisites, see Getting Started.

📚 Documentation

We have comprehensive documentation to help you understand and modify this project:

Document Description
Getting Started Installation, running the app, and dev scripts.
Project Structure Explanation of the monorepo layout and application roles.
Architecture High-level system design, data flow, and Module Federation config.
Technologies Detailed breakdown of the tech stack (Rsbuild, React 19, Redux).
Tutorial Step-by-step guide to adding a new shared component.
Learning Goals Educational concepts covered in this project.
Troubleshooting Common errors and how to fix them.

🏗️ Architecture Overview

The project consists of a Host App (Container) that consumes features from Remote Apps and utilizes shared logic from Shared Utils.

graph LR
    Host[Host App] --> Remote1[Remote App 1]
    Host --> Remote2[Remote App 2]
    Remote1 --> Shared[Shared Utils]
    Remote2 --> Shared
    Host --> Shared
Loading

See ARCHITECTURE.md for the complete design.

🔑 Key Features

  • ⚡ Blazing Fast Builds: Powered by Rsbuild (Rspack).
  • 🔄 Module Federation Enhanced: Advanced runtime sharing and version management.
  • 🧠 Shared State: Redux Toolkit & Singleton pattern implementation.
  • 📡 Event Bus: Decoupled cross-app communication.
  • 🧭 Routing: Unified navigation with React Router v7.

🤝 Contributing

  1. Linting: npm run lint:all
  2. Build: npm run build:all

This project is private and intended for educational & demonstration purposes.

About

Comprehensive micro-frontend implementation showcase using Module Federation. Demonstrates advanced patterns including cross-app routing, event bus architecture, error handling, and shared state management with Redux.

Resources

Stars

Watchers

Forks