This repository contains the NgRx example for the following blog post: What is NgRx and why is it used in Angular apps?
Demo: https://ngrx-example.vercel.app
This example will help you understand how to use the NgRx framework.
From a business perspective, it is a product catalog with a shopping cart. You can add items to the cart and then remove them.
It contains the following technical aspects:
- Using Store, Actions / ActionGroups, Selectors, Reducers, and Effects in an Angular application.
- Introduction of feature stores.
- Sample tests for these NgRx elements.
In addition to Angular Framework and NgRx, it uses the following supporting frameworks & tools:
- Angular Material for the UI-stuff.
- shallow-render for reducing boilerplate test code.
- Vercel for deploying the demo application
- SonarCloud for continuous static code analysis
- GitHub Actions for running the tests.