Skip to content

This project demonstrates the implementation of a micro-frontend architecture using React and Next.js.

License

Notifications You must be signed in to change notification settings

ImBIOS/next_microfrontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micro-Frontend Project with React and Next.js

Overview

This project demonstrates the implementation of a micro-frontend architecture using React and Next.js. It's based on a tutorial by Harsh Patel on DEV Community. The project is structured into three separate Next.js applications, showcasing module federation and component sharing.

Prerequisites

  • Node.js (version specified in the tutorial)
  • Next.js v10.2 or later

Setup

  1. Clone the repository.
  2. Navigate to each micro-frontend directory (fe1, fe2, fe3).
  3. Run bun install to install dependencies.

Running the Project

  1. Start each micro-frontend separately using bun run dev.
  2. Access the applications on their respective ports as configured.

Structure

  • fe1: Contains a Header component.
  • fe2: Exposes a common utility function.
  • fe3: Consumes components and functions from fe1 and fe2.

Key Concepts Demonstrated

  • Module Federation in Webpack 5.
  • Component sharing across different micro-frontends.
  • Dynamic code loading in a micro-frontend architecture.

Contributing

Feel free to contribute to this project by submitting pull requests or opening issues for any bugs or feature enhancements.

License

MIT License. See license for details.

Acknowledgements

Thanks to Harsh Patel and the DEV Community for the original tutorial.

About

This project demonstrates the implementation of a micro-frontend architecture using React and Next.js.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project