I follow the video below to make this project.
Note: this project is only to studying purpose.
Follow the steps below to run this project.
- Install root packages, for that run:
npm install
oryarn install
; - Install micro frontends packages, using on of this commands:
npm install
oryarn install
;- Note: you need run the installer to
./packages/counter
and./packages/host
folders;
- Note: you need run the installer to
- After that you only need run one of this commands on root folder:
npm run start
oryarn start
.
You can find the table below on the internet, I use this table to compare the speeds between the Yarn and NPM, but Yarn have other advantages.
Without Cache | With Cache | Reinstall | |
---|---|---|---|
NPM 6.13.4 | 67 seconds | 61 seconds | 28 seconds |
Yarn 1.21.1 | 57 seconds | 29 seconds | 1.2 seconds |