Angular Setup Guide

Angular Setup Guide

๐Ÿ› ️ 1. Install Node.js & npm

Angular requires Node.js (includes npm - Node Package Manager).

✅ Download & Install:

  • Go to https://nodejs.org
  • Download the LTS version (recommended for most users).
  • Follow the installer instructions for your OS (Windows, macOS, Linux).

๐Ÿ” Verify Installation:

node -v
npm -v

๐ŸŸข 2. Install Angular CLI (Command Line Interface)

The Angular CLI is a powerful tool to scaffold, build, serve, and manage Angular projects.

๐Ÿ“ฅ Install Globally:

npm install -g @angular/cli

๐Ÿ” Verify Installation:

ng version

๐Ÿงช 3. Create Your First Angular App

ng new my-angular-app

You’ll be prompted to:

  • Choose if you want to add Angular routing → (Yes/No)
  • Choose a stylesheet format (CSS, SCSS, etc.)

Move into the project directory:

cd my-angular-app

๐Ÿš€ 4. Serve the App Locally

ng serve

Open your browser and go to:

http://localhost:4200

You’ll see the default Angular welcome page ๐ŸŽ‰

๐Ÿ“‚ Optional: VS Code Setup (Recommended Editor)

  • Install Visual Studio Code
  • Add the Angular Essentials Extension Pack:
    • Angular Language Service
    • Prettier
    • ESLint
    • Path Intellisense

๐Ÿ”„ Summary Checklist

Step Command
Install Node.js https://nodejs.org/
Install Angular CLI npm install -g @angular/cli
Create Project ng new my-angular-app
Run Project ng serve
View in Browser http://localhost:4200

Comments

Popular posts from this blog

Car Wash System vb.net

Face recognition using EmguCV 3.0 and typing pattern recognition

Student Information System - AngularJS , ASP.NET API, C#