This project was generated with Angular CLI version 12.0.1.
We use Angular Workspaces, it's not mandatory. But, I like it becouse it improves scafolding distribution and helps us to manage many microfrontend in the same repository and share utils (the demo hasn't that deep example).
Review here for the simpliest and default angular project without workspace.
Make sure you have installed the latest LTS version of Node.js from https://nodejs.org, then:
-
Open terminal on microfrontend-workspace directory.
-
Run
npm i
. -
Run
npm run start:weather-microfront
. -
Navigate to
http://localhost:4201/
.
Run bundle:weather-microfront
to build the weather-microfront project. The dist/weather-microfront/main.js
artifact is the microfrontend bundle to distribute to the host application.