Skip to content

infinum/js-infinum-talks-mfe-demo

Repository files navigation

Micro-frontends Architecture with Nx and Angular

As presented during Infinum Talks: Micro-Frontends & Production Previewing.

You can check the presentation slides here.

This workspace has been generated by Nx, a Smart, fast and extensible build system.

Development server

First, run npm ci to install all dependencies.

Run npm start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files (including changes to remote apps).

Understand this workspace

Run nx graph to see a diagram of the dependencies of the projects.

MFE-related commands

Generate a new host app with two remote apps

nx g @nrwl/angular:host phlex --remotes=movies,shows --dynamic --e2eTestRunner=none --prefix=inf --standalone

Generate a shareable and publishable library

nx g @nrwl/angular:library auth --tags=core --standalone --skipModule --buildable --publishable --importPath=@phlex/auth

Generate a new remote app and load it from the host app

nx g @nrwl/angular:remote music --host=phlex

Further help

Visit the Nx Documentation to learn more.

License

The MIT License

Credits

This repository was used for demonstration during Infinum Talks: Micro-Frontends & Production Previewing.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published