Skip to content

zaikinv/t-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 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

 
 
 

Contributors