alphaadidas / root-config

The root config that serves the HTML file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Isomorphic Microfrontends root config

This example shows server-rendered microfrontends, using single-spa, single-spa-layout, @node-loader/import-maps, and @node-loader/http.

You can read more about how this works at https://single-spa.js.org/docs/ssr-overview.

The current example references Pokemon APIs for the demo

Local Development

This project requires a NodeJS version that supports the --experimental-loader flag. I'm not sure exactly when it was added, but Node 14 definitely has support for it.

Additionally, this project may only work properly when the yarn.lock file is respected when installing dependencies. To do so, you may install yarn or use npm@>=7

yarn install
yarn develop
open http://localhost:9000

About

The root config that serves the HTML file


Languages

Language:JavaScript 74.4%Language:HTML 25.6%