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
Post a Comment