Introduction
Today, we are going to learn the most popular single-page application creation framework, called AngularJS, using Angular CLI (Command Line Interface). We know that by using Angular, we can build modern applications such as web, mobile, or desktop in the real world. Previously, we learned about another famous single-page application builder called Aurelia.
Prerequisites
- Download and Install: NodeJS( Angular requires Node.js version 8. x or 10. x. )
- Download and Install: VS Code(The best open-source editor for developing Angular Applications, etc ).
- Download and Install: Git( Not mandatory but used for a best practice ).
Angular CLI Installation
We can install the Angular Command Line Interface after the installation of "node.js" in our environment. This will help us to create the projects, generate application and library code, and perform a variety of ongoing development tasks such as testing, bundling, and deployment in our application. So, this will reduce the time of development activities because the CLI registers and generates files automatically at the beginning stage. That is why we need a version control mechanism for newly changed items in the application and it will identify in which files what types of changes are reflected. This is more helpful to beginners in Angular CLI application development. We can install the Angular CLI globally by using the following command in our application.
npm install -g @angular/cli
Create a Project
Now, we are going to create a simple project repository in our environment. The repository I have created is in the GitHub account and it is cloned in my environment (machine). The best practice of Angular CLI or any other application is to configure a version control in our VS Code otherwise we blindly create and check in the code in the project repository. No issues! We can continue without configuring a version control in our application.
Go to your repository or the place where you are planning to create a project setup. Open the command prompt and run the following command.
ng new angular-app
Eg: "ng new [ProjectName]" our project name is "angular-app"
Angular CLI created the "angular-app" in our repository.

Install Angular Essential Extension
Click on the Visual Studio Code Extension menu on the left sidebar, then search for "Angular Essential" (John Papa) in the search box. Once we install the Angular Essentials, it will install all other supporting packages in the application automatically. Also, It will generate different icons for all the folders, TS files, styles, and JSON, etc.

Angular Build
We have generated a dummy application in our repository. The next step will be to build our application. For that, open a "Command Terminal" in Visual Studio Code.






Chittaranjan SwainPosted Dec 19, 2019, 6:49 PM
Nice article thanks for sharing.
Amit Kumar SinghPosted Jan 24, 2019, 3:00 AM
Nice one.Thanks for sharing !!
Muthu KumarPosted Jan 3, 2019, 3:33 AM
Nice Article sir. Thanks for sharing..
Satyaprakash SamantarayPosted Jan 1, 2019, 7:19 AM
Nice article with description. Thanks for sharing.
Sarathlal SaseendranPosted Dec 18, 2018, 9:54 AM
Nice introduction to Angular 6 with CLI. Thanks for sharing Rajeesh.