Mf Next Chakra Poc_layout

screenshot of Mf Next Chakra Poc_layout
nextjs
react
chakra-ui

Mf Next Chakra Poc_layout

This is POC for Module Federation with Next.js and Chakra UI.

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:

  1. Clone both the "layout" and "content" repositories.
  2. Navigate to the root directory of each repository in your terminal.
  3. Run the following command in each repository's root directory to install the necessary dependencies:
npm install
  1. After the installation is complete, run the following command in each repository's root directory to start the development server:
npm run dev
  1. 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.

nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

chakra-ui
Chakra UI

Chakra UI is a popular open-source React component library that provides a set of accessible and customizable UI components to help developers create modern web applications.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

framer-motion
Framer Motion

Alpine.js is a lightweight JavaScript framework that simplifies the process of creating dynamic, reactive user interfaces on the web. It uses a declarative syntax that offers a higher level of abstraction compared to vanilla JavaScript, while being more performant and easier to use than jQuery.

webpack
Webpack

Webpack is a popular open-source module bundler for JavaScript applications that bundles and optimizes the code and its dependencies for production-ready deployment. It can also be used to transform other types of assets such as CSS, images, and fonts.