Creating new project. Setup application Environment. Manage application configurations. Building components, services and routing system. Starting application, testing and deploying the project. Installing 3rd party libraries like Bootstrap, Sass etc. Let’s create your Angular Application:PrerequisitesAngular required Nodejs to be installed on your system. You can following one of the following tutorials to install Angular on your system as per your operating system. Install Node.js on Windows Install Node.js on CentOS and Fedora Install Node.js on Ubuntu and Debian and LinuxMint After installation, make sure the Node.js and NPM are correctly installed.

Install Angular CLI

Now, Install the Angular CLI utility using the NPM package manager.

Prerequisites

Angular required Nodejs to be installed on your system. You can following one of the following tutorials to install Angular on your system as per your operating system.

Install Node.js on Windows Install Node.js on CentOS and Fedora Install Node.js on Ubuntu and Debian and LinuxMint

After installation, make sure the Node.js and NPM are correctly installed. The -g option with installation insures to install the Angular CLI globally on system. So, it will be accessible to all users and application on the system. Angular CLI provides a command ng used for command line operations. Let’s check the installed version of ng on your system.

Create Angular Application

Your system is ready for building an Angular Application. The following command will create the Angular application with name hello-angular. This will create a directory with your project name and create all files under it. It also installs all the required libraries in that directory. On successful creation, you will see the below message on the screen.

Run Angular Application

Your basic Angular application is ready to serve. Change to directory hello-angular and run your Angular application using ng serve command.

You can access your angular application on localhost port 4200, Which is the default host and port used by Angular application.

You can change host and port for running Angular application by providing –host and –port command line arguments. The IP address 0.0.0.0 listens on all interfaces and publically accessible.

How to Create Your Angular Application with Angular CLI   TecAdmin - 65How to Create Your Angular Application with Angular CLI   TecAdmin - 15