Getting started with Angular

less than 1 minute read

Introduction
Angular is a TypeScript-based free and open-source web application framework. It is maintained by Google and open-source community individuals.

Getting started

  1. Download and install Node.Js windows installer
    • You can check your installed node.js version using following command
      node -v
      

      or

      node --version
      
  2. Install Angular CLI
    • To install Angular CLI, open a windows terminal and run the following command
       npm install -g @angular/cli
      
  3. Create an application
    • Run the following CLI command to create an application name my-project
     ng new my-client-app
    
    • The ng new command prompts you for several information. For simplicity just keep default or press enter.
  4. Run application
    • Navigate to the workspace folder as follows
       cd my-client-app
      
    • Now run the following command to run application
     ng serve -open
    
     ng serve -o
    

    Your application automatically run to http://localhost:4200/

For more information visit angular official site: https://angular.io/