This repository is a monorepo setup for implementing module federation with webpack. It demonstrates how to use module federation to build microfrontends and share code between them.
To get started with this repository, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/saffari-m/module-federation-monorepo.git
- Navigate to the cloned repository directory:
cd module-federation-monorepo
- Install dependencies using pnpm (ensure pnpm is installed globally, if not, install it with
npm install -g pnpm
):
pnpm install
To run the project, you can use the following pnpm scripts:
pnpm start
: Starts the development server for the main application.pnpm start:dashboard
: Starts the development server for the dashboard application.pnpm start:marketing
: Starts the development server for the marketing application.
Visit the respective URLs to view the applications in your browser.
- Demonstrates module federation setup with webpack.
- Implements microfrontend architecture.
- Shared code between microfrontends.
- Development server for each microfrontend.
Contributions to this project are welcome. To contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive messages.
- Push your changes to your fork.
- Submit a pull request to the main repository.
Please ensure that your code follows the project's coding conventions and includes appropriate tests.
This project is licensed under the MIT License - see the LICENSE file for details.