This repo is used in conjunction with nine other repos listed below. Together they make up an application composed of microfrontends. Each app can be updated and deployed independently from the others.
You can find the demo here: Single-Spa-Demo App
yarn start:dev
yarn build:webpack
yarn start
npx create-single-spa
https://cdn.jsdelivr.net/gh/<github-username>/<github-repo-name@branch-name>/<filename>
$ npx heroku login -i
$ npx heroku create ar-single-spa-demo
$ git push heroku main
heroku login -i
is to login with password.git push heroku main
to push the new changes to heroku.This project uses single-spa to architect an app composed of micro-frontends
. In the root config, the eight other microfrontend apps (such as angular, react, vue, and svelte) are registered with singe-spa. The main index.ejs
file contains an import map, which references where to find the compiled JavaScript bundle for each microfrontend. SystemJS is the module loader which then loads the bundles when needed. Utility app serves shared data between other apps.
Each repo can be set up with Travis CI for running jobs as part of a continuous integration pipeline. When new code is pushed to the master branch for any of the repos, the new code is compiled and then uploaded to AWS S3, which serves as a CDN. The CI job also updates the import map file to reference the new bundle for the updated project.