Skip to content

zaikinv/t-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Description

Demo shop for the article You Might Not Need Module Federation: Orchestrate your Microfrontends at Runtime with Import Maps.

Prerequisites

Node 18.12.0.

Project structure

The project is using NPM workspaces and Nx.

t-shop
β”œβ”€ mfs β¬… microfrontends
β”‚  β”œβ”€ product-buy-box
β”‚  β”œβ”€ product-teaser
β”‚  β”œβ”€ product-tile
β”‚  β”œβ”€ shop-footer
β”‚  └─ shop-header
β”œβ”€ publisher β¬… handles submission of assets
β”œβ”€ resolver β¬… stores and updates import map
└─ shell β¬… host app

Installation

npm install

Running the app

  1. Run Import Map Resolver in terminal 1
npm run start
  1. Build and publish microfrontends in terminal 2
npm run build
  1. Open http://localhost:4173

Import map server

You can inspect current import map by calling: http://localhost:3000/api/

About

πŸ›’ Native module federation starter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published