Overview
The “Stand With Ukraine Module Federation with Next.js and Chakra UI” is a proof of concept (POC) project that demonstrates the use of Module Federation with Next.js and Chakra UI. The project consists of three Next.js 13 applications, each serving a different purpose. The “layout” app runs on port 3000, the “content” app runs on port 3001, and the “shop” app runs on port 3002. The apps are bootstrapped with create-next-app, and the Module Federation configuration is based on examples from the module-federation-examples repository on GitHub. All components used in the project are taken from Chakra Templates.
Features
- Module Federation with Next.js and Chakra UI
- Three separate Next.js 13 applications
- Bootstrapped with create-next-app
- Customizable layout, content, and shop apps
- Utilizes Chakra Templates for component styling
Installation
To install and run the project, follow these steps:
- Clone both the “layout” and “content” repositories.
- Navigate to the root directory of each repository in your terminal.
- Run the following command in each repository’s root directory to install the necessary dependencies:
npm install
- After the installation is complete, run the following command in each repository’s root directory to start the development server:
npm run dev
- Open your preferred web browser and go to http://localhost:3000 to see the result.
Summary
The “Stand With Ukraine Module Federation with Next.js and Chakra UI” is a POC project that showcases the integration of Module Federation with Next.js and Chakra UI. It consists of three separate Next.js 13 applications, each serving a distinct purpose. The project utilizes the create-next-app for bootstrapping and incorporates components from Chakra Templates for styling. By following the installation guide, users can easily clone and run the project to explore its features and functionality.