Patricio Vargas
Software Engineer
devpato
Staff Developer Advocate at
Patricio Vargas (Pato)
devpato
devpato
devpato
App Overview
App Features
Domain Security
Domain Rules
Logging
Services/
Communication
Data Models
Features
Components
Shared
Functionality
2 Kinds
devpato
devpato
NPM Enterprise Registry
devpato
devpato
PROS
devpato
CONS
devpato
devpato
Monorepos are a source control pattern where essentially all the codebase lives in the same repository. All projects will always use the latest version of the code.
What is a Monorepo?
devpato
PROS
devpato
devpato
devpato
devpato
devpato
devpato
npm install --global nx@latest
npx create-nx-workspace@latest react-monorepo --preset=react-monorepo
Install Nx CLI globally
Create a Nx Workspace
devpato
devpato
Now create your React app:
npx nx g @nx/react:app inventory --directory=apps/inventory
devpato
devpato
BUT WAIT!
THERE'S MORE!
Why Turborepo
https://turbo.build/repo/docs/core-concepts/monorepos
Why Nx?
https://nx.dev/getting-started/why-nx
Nx Tutorial
https://nx.dev/getting-started/tutorials/react-monorepo-tutorial
devpato
Find the project on GitHub
https://tinyurl.com/mrxxbk96
By Patricio Vargas