Course Description
Last updated
Last updated
Building enterprise Angular applications is not easy and when you need to share code between multiple Angular mobile or web applications it is even harder. If you are about to kick off or are in the middle of a large application in Angular this workshop will prepare you to tackle implementing the best project structure and patterns using nx workspaces and NgRx state management patterns.
In this workshop we walk through a thorough introduction into using NgRx, an RxJS powered state management library for Angular applications, inspired by Redux. We will use Nx CLI and Nrwl Plugins, an open source toolkit for enterprise applications. Nx was designed to help you create and build enterprise-grade Angular applications with proven project structure and patterns. As well as NodeJS and backends, it now also supports React, [Web Components], and Storybook.
You will learn to use nx to create a monorepo creating one or many Angular applications with a robust code sharing system using nx workspaces and shared libraries.
We will build and test an nx application implementing NgRx actions, reducers, effects, entity adapters, router-store, onPush change detection and a single immutable data structure called the store.
We will look at common patterns for structuring your applications state by feature and how to deal with splitting up related data into multiple reducers. Then will we will look at how to create selectors to combine multiple slices of state from the store.
By the end of this workshop you will have built a working Nx and NgRx application you can extend into an enterprise application. You will also walk away with the source code and the course material. So join me and bring your laptops to this workshop where you will get to code along as we build and learn to make awesome Angular applications.
Day 1
Angular mono repo architecture with the CLI and nx workspaces
Building shared nx libraries with NgRx
Redux and NgRx principles
Angular fundamentals including components, routing, services and forms
Day 2
Entity State adapter
Splitting up related data into multiple reducers
Creating NgRx selectors
Router actions and effects
Building and deploying you nx application
Unit and e2e testing
Prerequisites This workshop is for developers with at least a basic understanding of JavaScript and HTML. You do not need angular v2+ experience to attend this course but it is recommended to have done at least the beginner's tutorial on angular.io or equivalent. This course briefly covers the fundamentals of angular components, services, routing and modules but moves onto talking about using them with NgRx and Nx workspaces with enterprise patterns for the majority of the workshop.
Computer Setup: You need to bring your own laptop with the below software installed to follow this workshop.
Visual Studio Code
A command line Git client
NodeJS (Latest stable version)
Angular CLI
If you get stuck we can help you on the day but it helps to have this already installed.