Setup
In this section we will configure our machines to get the most from this workshop.
Dependency checklist:
node (version 8 later)
Git
Angular CLI
Visual Studio Code
Visual Studio Code Extensions
The main dependency for being able to make an Angular application is node version 8+. The latest stable version of node is best to get if you do not have it already installed.
1. Install node
You can check your version of node by running the following command in the terminal.
If you do not have node installed or you are using a version lower than v4 then I you can get the latest stable version from www.nodejs.org.
2. Install Git
You can check your version of node by running the following command in the terminal.
If you would like to use source control and check out completed work then it is recommended to have git installed on your machine. You can download git from https://git-scm.com/downloads
3. Install Angular CLI
We need to have the Angular CLI installed globally. Run the following command.
4. Get Visual Studio Code
5. Get Visual Studio Code Extensions
Angular Essentials: Everything you need for angular in an extension pack
Rainbow Brackets: Handy for many brackets when inlining observables
TSLint: Great linting in VS Code
Wallaby.js for unit tests line
6. Optionally turn on Visual Studio Code auto save
7. Update VS Code user settings to use single quotes and warnings for lint rules
Open the command palette by pressing Ctrl + Shift + P and search for 'Preferences: Open User Settings'.
Click the ellipsis and select 'Open settings.json' as shown in the following image.
Add to your user settings the below options.
Note that many people like to hide the Open Editors explorer on the top right as it is just a list of open tabs which you can see on the tabs themselves.
Last updated