Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.12 KB

File metadata and controls

26 lines (19 loc) · 1.12 KB

nx-microfe-sample

How this repo was set up

  • Create workspace npx create-nx-workspace@latest <workspace_name>
  • Remove default app npx nx g rm <workspace_name>
  • Create shell app and two remotes
    • npx nx g @nx/react:host apps/shell --remotes=shop,cart
  • Create a new remote app
    • npx nx g @nx/react:remote apps/about --host=shell
  • Create lib folder for shared logic
    • npx nx g @nx/react:lib libs
    • connect lib to shell and remotes
  • Run it
    • npx nx serve shell --devRemotes=cart,shop,about

Useful links

Learn more: