actionanand / single-spa-angular

This is the single-spa application/parcel app using angular. This repo is used in conjunction with four other repos(single-spa root config, react, vue, and svelte) to build an app.

Home Page:https://ar-single-spa-demo.herokuapp.com/angular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Single-Spa Angular

This project was generated with Angular CLI version 14.0.2. with the help of single-spa.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Overview

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.

Demo

You can find the demo here: Single-Spa-Demo App

How to run this repo locally

npm run serve:single-spa:single-spa-angular

How to build for production

npm run build:single-spa:single-spa-angular

How to create single-spa frontend app

npx create-single-spa

How to serve raw github content as CDN

https://cdn.jsdelivr.net/gh/<github-username>/<github-repo-name@branch-name>/<filename>

How It Works

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.

NB

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.

Sources

About

This is the single-spa application/parcel app using angular. This repo is used in conjunction with four other repos(single-spa root config, react, vue, and svelte) to build an app.

https://ar-single-spa-demo.herokuapp.com/angular


Languages

Language:TypeScript 59.2%Language:SCSS 26.3%Language:HTML 7.9%Language:JavaScript 6.6%