Skip to content

StarkTechLabs/nx-microfe-sample

Repository files navigation

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:

About

Sample monorepo with micro frontend architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published