chore(readme): update usage section

This commit is contained in:
Ayo 2024-01-26 11:06:41 +01:00
parent 8e82c8ac0b
commit 65e342e3ba

View file

@ -29,17 +29,15 @@ This project was initially forked from [this repo](https://github.com/sasoria/as
## Usage ## Usage
### Micro frontends DX in this demo is not that easy, because we are simulating the development of multiple apps that in reality would have separate delivery pipelines and possibly maintained by different teams.
- Build each micro frontend with `npm run build` Currently each app has a `build:preview` script that represents the process of building & deploying them, ideally in a CDN.
- Start each micro frontend with `npm run preview`
For production you would start the node server in the `server` folder, after building. Open the app-shell and each MF app (i.e., app-cart, app-heading, app-products) in a separate terminals and run "npm run build:preview" for each.
### Shell You have to rerun this for any app you modify.
- Build the shell with `npm run build` You will see the benefit of this in scale as you don't need to rebuild a single big app for changes only in smaller frontend parts.
- Start the shell with `npm run preview`
## Shared dependencies ## Shared dependencies