If you already know with Angular 2, 4, 5, 6 and 7 the process of starting a new Angular 8 project is pretty much similar. So, if you have no earlier experience with Angular, don’t worry. The process for all the application same, you can install the Angular app with the following steps.
Before starting you need to do a couple of things before proceeding.
1. Node.js (Recommended version)
2. Node Package Manager (NPM)
To check whether you have installed both of these in your system or not. Use the following command line to check the version, also check whether you installed above these things or not.
$ node -v
$ npm -v
Install Angular through CLI
Once you completed the installation of (Node Package Manager) NPM, you can install Angular CLI in the following steps. Open your terminal or command prompt in your system and enter the below command.
Note: If you have trouble with installation on mac, using the sudo command to execute.
npm install -g @angular/cli
The above command installs the Angular globally in your system, g stands for global installation.
Check Angular CLI version
Once the installation completed, use the following command to check whether the Angular application installation is completed successfully or not. Also, check the current Angular version CLI.
Create a New Angular App with the CLI
Now it is time to start a new project with Angular CLI. For this first, you need to choose where your files need to save source code and execute your project. After you chose the location then use the following command to install your first Angular app.
ng new my-app
The above command will help to install your Angular app project with all the configurations that you required.
Run your first Angular App
Once you create the first Angular project, now open the browser and type http://localhost:4200 in the address bar and run your Welcome page. Also, you can open your project using the following command.
ng serve --open
Getting started with an Angular project with the help of the CLI makes it very fast and secure, also pretty flexible with the type of standards you can use.