Saturday, February 2, 2019

Up and running with Angular 7 in 7 minutes

1. Install node js

https://nodejs.org/en/download/

Verify by checking versions as follows.

node -v
npm -v



2. Install the latest version of Angular CLI

npm install -g @angular/cli

Verify by checking version.

ng version

2.1 Install specific version of Angular CLI

// uninstall previous version of angular cli
npm uninstall -g @angular/cli
npm cache clean

// install a specific version of angular
npm i -g  @angular/cli@8.3.29


3. Install Git

https://git-scm.com/downloads

// Use without --global if setting these values on project by project basis
git config --global user.email
git config --global user.name

If a valid email and name is not displayed, set one up using:

git config --global user.email "email@example.com"
git config --global user.name"Your Name"



4. Verify Sass is installed

Verify by checking version.

npm sass -v

If not installed:

npm install -g sass




5. Create an Angular app

Change to directory where you would like to create the application.

ng new helloang

Routing: Yes
Choose Sass



6. Serve the application

cd helloang

ng serve --open