Angular 10 Tutorial #4 - Install Angular CLI | Angular 10 Tutorial For Beginners

Angular 10 Tutorial #4 - Install Angular CLI | Angular 10 Tutorial For Beginners

Angular 10 Full Tutorial Series - Part 4: Installing Angular CLI

Introduction to Angular CLI Installation

  • The tutorial focuses on installing Angular CLI and generating the first Angular application, aimed at absolute beginners.
  • The presenter, Sridhar, emphasizes the importance of coding along with the tutorial for effective learning. He has planned around 100 tutorials in this series.

Prerequisites for Installation

  • Before installation, ensure you have a basic operating system (Windows, Mac, Linux, Chromebook), Node.js (JavaScript runtime), and Node Package Manager (NPM).
  • A code editor is also required; options include Visual Studio Code, Sublime Text, or Vim.

Checking Node and NPM Versions

  • Check your Node version using node -v and ensure NPM is version 5.3 or above by running npm -v.

Installing Angular CLI

  • To install Angular CLI globally (accessible from any path), use the command: npm install -g @angular/cli.
  • The term "CLI" stands for Command Line Interface which allows users to run commands in the terminal for efficient code generation.

Using Visual Studio Code Terminal

  • Accessing the terminal in Visual Studio Code can be done using the shortcut: Control + Backtick (`).

Running Installation Commands

  • After confirming Node and NPM versions, proceed with installing Angular CLI using npm install -g @angular/cli.
  • This command will fetch the latest version of Angular CLI; it may take a minute to complete.

Creating a New Project

  • Once installed successfully (version 10.2.0 confirmed), create a new project using ng new <project-name>, where <project-name> can be anything you prefer.
  • For example, creating an online CRM tool can be done by naming it "simple-crm". You will be prompted to add routing and select CSS format during setup.

Project Generation Process

Getting Started with Angular: Application Setup

Initializing the Application

  • The process of generating all necessary code and end-to-end tests is underway, with package installation expected to complete shortly.
  • Future episodes will cover the folder structure in detail, explaining the purpose of each file and its impact on the application, making it easier for beginners to understand.
  • Emphasis on patience while learning Angular or any modern web framework, especially for absolute beginners.

Running the Application

  • Once all packages are installed successfully, the command ng serve is used to start the application.
  • Navigate into the project directory (simple crm) before executing ng serve to avoid errors during startup.

Compiling and Accessing the Application

  • The first-time compilation of an Angular application may take a moment; subsequent reloads should be faster due to caching.
  • After successful compilation, access the application at localhost:4200, which is Angular's default port.

Confirmation of Successful Setup

  • Upon successful compilation, a message indicates that the Angular development server is running on localhost:4200.
  • Seeing your project name displayed confirms that your first Angular application is up and running successfully.

Next Steps in Learning

  • In upcoming episodes, detailed exploration of folder structures will occur alongside building a simple CRM application.
Video description

Angular 10 Tutorial, Angular 10 Tutorial For Beginners, Angular full tutorial, Angular learn angular applications, How to develop Angular Apps, Angular tutorials building and deploying Angular Apps, Building angular applications in Angular 10, Learn to build Angular 10 applications, Angular build and deploying applications, angular 10 building and deploying in Angular Apps, angular Apps build and deployment in Angular 10, 6,7,8, 9, angular 8 example, Angular 10 tutorial for beginners, angular 10 tutorials, angular tutorials for beginners, angular interview questions and answers, angular live projects, angular 10 crash course, angular 10 tutorial for beginners step by step, angular tutorial for beginners 2020,angular tutorial 2020,angular code examples, angular for freshers, angular tutorial for experienced, arc tutorials angular, arc tutorials, angular 10 full course, angular 10 tutorial for beginners, angular 10 tutorial Angular 10 tutorial for beginners, angular 10 crash course, angular 10 tutorial for beginners step by step, angular tutorial for beginners 2020, angular tutorial 2020, arc tutorial angular, angular code examples, angular for freshers, angular tutorial for experienced, angular introduction, angular version history, angular full tutorial series, best angular tutorial. Notes in GitHub repo: https://github.com/arctutorials/angular-10-notes Angular 10 Tutorial #1 https://youtu.be/Fg4spR6cdBQ Angular 10 Tutorial #2 https://youtu.be/0qhtqdXF8oA Angular 10 Tutorial #3 - Upgrade to Angular 10 https://youtu.be/OXqdaAe-c1k Angular 10 Tutorial #4 - Install Angular CLI tutorial https://youtu.be/R_1LxpAOhyY Angular 10 Tutorial #5 - Install Bootstrap in Angular App https://youtu.be/lcCeE1m0r_k Angular 10 Tutorial #6 - Install Angular Material in Angular Application https://youtu.be/ISf6o99LdKQ Angular 10 Tutorial #7 - Folder Structure of Angular Apps https://youtu.be/U7H4hial7WQ Angular 10 Tutorial #8 - Boot Process of Angular Apps https://youtu.be/BAKoNJvGjAQ Angular 10 Tutorial #9 - Package.Json and Package-lock.json https://youtu.be/W9pbEwqfQd8 Angular 10 Tutorial #10 - Angular CLI Tutorial https://youtu.be/AuBfy1sGkuo Angular 10 Tutorial #11 - App Architecture https://youtu.be/m8_gZgvzPhE Angular 10 Tutorial #12 - Modules https://youtu.be/7sUkBbNPJ5k Angular 10 Tutorial #13 - Components https://youtu.be/9UbgP8vaUgw Angular 10 Tutorial #14 - Component Lifecycle Hooks https://youtu.be/vrNFylFhn_E Angular 10 Tutorial #15 - Component Communications https://youtu.be/dUeUQdqk8WI Angular 10 Tutorial #16 - Templates in Angular Components https://youtu.be/AuBfy1sGkuo Angular 10 Tutorial #17 - Directives in Angular 10 https://youtu.be/RaFJlxUwdjs Angular 10 Tutorial #18 - Structural Directives in Angular 10 https://youtu.be/Y9aAf8pyEm4 Angular 10 Tutorial #19 - ngIf in Angular 10 https://youtu.be/ePPtk76N1KU Angular 10 Tutorial #20 - ngSwitch in Angular 10 https://youtu.be/4d0PgMBBrnE Angular 10 Tutorial #21 - ngStyle in Angular 10 https://youtu.be/xarZAVOfmaA Angular 10 Tutorial #22 - ngClass in Angular 10 https://youtu.be/9zAbM1EUbRE Angular 10 Tutorial For Beginners https://www.youtube.com/watch?v=oEO0KzY1ipg&list=PLp50dWW_m40XvOAFFMYUYVzTecTS8AywO Angular 9 Full Tutorial For Beginners https://www.youtube.com/watch?v=f3CcneXbJk8&list=PLp50dWW_m40XgTvxNoxddGkir5kSpFFmK Angular CRUD Tutorial Step by Step https://www.youtube.com/watch?v=I5i1GonlfFM&list=PLp50dWW_m40WQ9-t0lyamekhE2OiZQrCG Angular Testing Tutorial https://www.youtube.com/watch?v=WXEABDX7358&list=PLp50dWW_m40UY7X4Ko9AFifrMUMik5boO