NodeJS ( )


Install Angular CLI

Install the Angular CLI using the npm 

npm install -g @angular/cli


Create your first project 

Invoke the following commands in command prompt 

ng new my-first-project

my-first-project is the name of project. When you run above command in command prompt , it will ask you few questions like below, after that the CLI installs the necessary Angular npm packages and other dependencies in a new workspace


Initial folder structure will look like below




Run your first project

Navigate to projects root directory

cd my-first-project

Use below command to run project

ng serve

The app will run in http://localhost:4200/

Open http://localhost:4200/ 

Your application is running now.

Output will look like below


Next : Angular project file structure