Giter VIP home page Giter VIP logo

microfrontend's Introduction

Microfrontend

๐Ÿ‘‹ Hi! This is a demo for an Angular 17 application with dynamic microfrontends: based on the package @angular-architects/module-federation, the microfrontend applications will be dynamically loaded in two ways through the router and using dynamic rendering of exposed components. This demo has focus on architecture, so no tests and no particular styles are implemented.

Structure

Application Shell: loads dynamically two microfrontend applications using both routes and single standalone components; it provides a proxy to access the assets of the microfrontends.

mfe1 and mfe2: applications that expose routes and a standalone component to be loaded by the shell;

mfe-common: library that allow to share components and classes between all the applications;

Start

  • Install dependencies with npm
  • Run Micro Frontend 1 with the following command ng serve mfe1 -o
  • Run Micro Frontend 2 with the following command ng serve mfe2 -o
  • Run the shell (the application that hosts the microfrontend applications. Be sure to run the shell last) with the following command ng serve shell -o

Lint

Run npm run eslint to run the ES lint.

Run npm run eslint:fix to run the ES lint and apply fixes.

microfrontend's People

Contributors

syrenly avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.