Setting up our Monorepo
In this section, we are going to set up our monorepo, which will act as a base for our microfrontend apps. We will learn how to set up the right permissions and the necessary quality gates. Along the way, we will also learn about a couple of productivity tricks and plugins that improve the developer experience.
For this example and the rest of the chapters, we will use Nx as the monorepo to build our microfrontends as it allows you to build both a package-setup-style and an integrated-style monorepo. You can equally choose either Lerna or Turborepo to build your microfrontends.
Follow along with the step-by-step guide to set up an Nx monorepo:
- Open up the terminal,
cd
into the folder where you generally keep your projects, and run the following command:pnpx create-nx-workspace@14
The preceding command will install a couple of libraries and will then prompt you for the name of the workspace (e.g.,
org name
). This will be the name of the folder within...