Prerequisites
Before you begin, ensure you have the following installed:- Node.js: Version 18.x or later
- npm: Version 9.x or later (comes with Node.js)
- Git: For version control
Download and install Node.js from nodejs.org. We recommend using the LTS (Long Term Support) version.
IDE Setup
Recommended IDE: Visual Studio Code
We recommend using Visual Studio Code for development.Required Extensions
Install the following VSCode extension for the best development experience:- Angular Language Service (
angular.ng-template) - Provides intellisense, code completion, and diagnostics for Angular templates
Recommended Extensions
These extensions are highly recommended:- ESLint (
dbaeumer.vscode-eslint) - JavaScript/TypeScript linting - Prettier (
esbenp.prettier-vscode) - Code formatter - Angular Snippets - Code snippets for Angular
- GitLens - Enhanced Git capabilities
Alternative IDEs
You can also use:- WebStorm by JetBrains (has built-in Angular support)
- Sublime Text with appropriate plugins
- Atom with Angular packages
Project Structure Overview
After setup, your project structure will look like this:Key Dependencies
Production Dependencies
- @angular/core (^20.2.0) - Angular framework
- @angular/material (^20.2.14) - Material Design components
- @angular/cdk (^20.2.14) - Component Dev Kit
- leaflet (^1.9.4) - Interactive maps
- rxjs (~7.8.0) - Reactive extensions
Development Dependencies
- @angular/cli (^20.2.2) - Angular command line tools
- typescript (~5.9.2) - TypeScript compiler
- angular-eslint (21.0.1) - ESLint for Angular
- jasmine-core (~5.9.0) - Testing framework
- karma (~6.4.0) - Test runner
Verify Your Setup
Run the development server to verify everything is working:http://localhost:4200/. You should see the Air Tracker application running.
Troubleshooting
Port Already in Use
If port 4200 is already in use, specify a different port:Node Version Issues
If you encounter Node.js version issues, consider using nvm (Node Version Manager) to manage multiple Node.js versions.Dependency Installation Failures
Ifnpm install fails:
- Clear npm cache:
npm cache clean --force - Delete
node_modulesandpackage-lock.json - Run
npm installagain
Next Steps
Now that your environment is set up:- Learn how to run the project locally
- Explore the testing guide
- Review code style guidelines
