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
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