Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Nx Workshop

Nx Workshop

An Introduction of Nx.
In this workshop, I show how to create a project using Nx.
The project has a backend created using nestjs and a frontend created using angular.

Luca Del Puppo

September 07, 2021
Tweet

More Decks by Luca Del Puppo

Other Decks in Technology

Transcript

  1. 0 →Intro 1 → Nx ❤ Angular/React 2 → Nx

    ❤ Nestjs 3 → Work together 4 → Workspace File Agenda Nx Workshop Indice 4 → Deps graph/rules 5 → Build with style 6 → Schematics 7 → Deploy 8 → Happy ending
  2. Monorepo … is a specific Trunk-Based Development implementation where the

    organization in question puts its source for all applications/services/libraries/frameworks into one trunk and forces developers to commit together in that trunk - atomically.
  3. Monorepo - Pro ➔ share code ➔ atomic commit ➔

    Single set of dependencies Nx Workshop Monorepo - Pro
  4. Monorepo - Contro ➔ share code ➔ changes can broke

    multiple projects ➔ code ownership ➔ chaotic directory layout Nx Workshop Monorepo - Pro
  5. Nx help Monorepo ➔ Scaling Your Repo ◆ Faster Command

    Execution ➔ Scaling Your Organization ◆ Controlled Code Sharing ◆ Consistent Code Generation ◆ Accurate Architecture Diagram Template 169 Titolo e corpo testo
  6. Nx - Benefit ➔ Node FE + Node Be work

    together (but not mandatory) ➔ Create dependence rules ➔ Graph your code deps ➔ Build/Test only your change effects ➔ Help you to automate your process Template 169 Titolo e corpo testo