This free book about the Nx build framework targets Angular developers. It assumes familiarity with the Angular CLI to use common concepts and compare them to equivalents or replacements included in the Nx CLI.
The Angular Developer's Nx Handbook is a curated guide to essential Nx concepts, principles, and features. We learn to use Nx to build features for a real-world Angular application.
We start our Nx Angular journey by generating a workspace from scratch. After exploring the contents of a freshly generated Nx workspace, we go through the Nx CLI commands that are similar to or replacements for Angular CLI commands. Next, we discuss the unique commands offered by the Nx CLI.
Following Nx CLI commands, we learn about the important Nx library concepts library traits and library types.
With an understanding of Nx library concepts in place, we start work on Gitropolis, a GitHub clone using GitHub's Primer design system, the GitHub REST API via Octokit, RxAngular for state management, an improved developer experience, and optimized rendering.
The book uses the latest tooling, conventions, and best practices.
We develop Gitropolis using:
- An Angular standalone application
- Angular standalone components
- Angular version 14 or 15
- Nx version 14 or 15
- GitHub Actions
Still to come:
- Advanced Nx CLI commands
- The Nx project graph
- Project tags
- Grouping directories
- Nx plugins
- A CI workflow using GitHub Actions
- Migrating from an existing Angular CLI workspace