Setting Up Angular Project From Scratch

To setup Angular project from scratch, first you need to have Node.js installed in your project. Once you have installed it you can check the version from command prompt.

node --version

Node also installed npm(Node Package Manager). You can use npm to install the Angular CLI. From you command prompt, type in the following:

npm install -g @angular/cli

To create a new project using the Angular CLI, from the command prompt type

ng new my-app

my-app is your application name. The above command creates a boilerplate code. Once it finishes you can navigate to the project folder and run the Angular application.

cd my-app
npm start