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
devpato
2 Kinds
devpato
devpato
NPM Enterprise Registry
devpato
devpato
Where search-lib is the name of your library
ng generate library search-lib
devpato
devpato
PROS
devpato
CONS
devpato
devpato
microfrontend allows large applications to be split into smaller apps in their own codebase, maybe using a totally different stack, that can be composed. For example, your search component could be written in Angular and the rest of the app in Polymer and React.
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
npm install -g @nrwl/schematics
npx create-nx-workspace@latest paypal
Install Nx globally
Create a Nx Workspace
devpato
devpato
Now create your Angular app:
ng g @nrwl/angular:application store
devpato
Angular apps go here
Libraries used by your Angular apps go here
devpato
devpato
devpato
"assets": [
"apps/employees/src/favicon.ico",
"apps/employees/src/assets",
{
"glob": "**/*",
"input": "./libs/ui/src/lib/shared-assets",
"output": "./assets"
}
]
devpato
devpato
-@LeonidasEsteban
Angular Libraries with Nx for
Enterprise Apps
https://tinyurl.com/wt2kmqb
Angular Development in Enterprise
https://tinyurl.com/w5nv8pz
Angular Architecture
https://tinyurl.com/ycheksoa
devpato
Find the project on GitHub
https://tinyurl.com/52rdunj5