Skip to content

riaconsultant/angular-ngrx

Repository files navigation

Ngrx (with NgRx Data) - The Complete Guide

This course repository is updated to Angular v9 and NgRx 8:

Installation pre-requisites

For taking the course we recommend installing Node 12. These are some tutorials to install node in different operating systems:

To easily switch between node versions on your machine, we recommend using a node virtual environment tool such as nave or nvm-windows, depending on your operating system.

For example, here is how you switch to a new node version using nave:

# note that you don't even need to update your node version before installing nave
npm install -g nave

nave use 12.3.1
node -v
v12.3.1

Installing the Angular CLI

With the following command the angular-cli will be installed globally in your machine:

npm install -g @angular/cli 

How To install this repository

We can install the master branch using the following commands:

git clone https://github.com/riaconsultant/angular-ngrx.git

This repository is made of several separate npm modules, that are installable separately. For example, to run the au-input module, we can do the following:

cd ngrx-course
npm install

Its also possible to install the modules as usual using npm:

npm install 

This should take a couple of minutes. If there are issues, please post the complete error message in the Questions section of the course.

To Run the Development Backend Server

We can start the sample application backend with the following command:

npm run server

This is a small Node REST API server.

To run the Development UI Server

To run the frontend part of our code, we will use the Angular CLI:

npm start 

The application is visible at port 4200: http:https://localhost:4200

Important

This repository has multiple branches, have a look at the beginning of each section to see the name of the branch.

At certain points along the course, you will be asked to checkout other remote branches other than master. You can view all branches that you have available remotely using the following command:

git branch -a

The remote branches have their starting in origin, such as for example 1-start.

We can checkout the remote branch and start tracking it with a local branch that has the same name, by using the following command:

  git checkout -b 1-start 

It's also possible to download a ZIP file for a given branch, using the branch dropdown on this page on the top left, and then selecting the Clone or Download / Download as ZIP button.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published