Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Muzikanto/micro-frontend-starter

Repository files navigation

Micro Frontend Demo

A sample repo for demoing a micro frontend architecture setup.

Getting started

  1. Run: npm run dev
  2. Navigate to http://localhost:3000/

Main Host App: http://localhost:3000/ Shared Remote: http://localhost:3001/ Ui-kit: http://localhost:6006/

Architecture

TBD

Tech Stack

  • Turborepo
  • React
  • Typescript
  • Next (with next-seo, next-translate)
  • Webpack v5 (w/ Module Federation)

Related Blog Posts

Open Items

  • Dynamic remote URLs
  • Deployment
  • Sharing state from host to application (props)
  • Sharing global state from host to remotes (zustand?)
  • Sharing local storage (persist cart)
  • Central analytics event stream
  • Error Boundary/Safe loading. + Suspense in 'FederatedWrapper'
  • Versioning between host and remotes
  • Versioning node_modules?
  • Routing. How do you do in-browser linking from a remote component when the host is the one controlling the router? What happens if you use mismatching versions of react-router?
  • How can you share local/session state between remote and host?