Prerequisites
Before you begin, ensure you have the following installed:- Node.js (v20 or higher recommended)
- npm 11.6.4 or higher
- Angular CLI 21.2.0 or higher
This project uses
[email protected] as specified in the packageManager field. The package manager will be automatically used when running npm commands.Clone and Install
Install dependencies
Install all required dependencies using npm:This will install:
- Angular 21.2.0 framework and dependencies
- Tailwind CSS 4.1.12 for styling
- Vitest 4.0.8 for testing
- Express 5.1.0 for SSR server
- All other required packages from package.json
Project Structure
The Count App follows the standard Angular project structure:Key Directories
- src/app/: Contains your Angular components, services, and application logic
- public/: Static assets that are copied directly to the output directory
- dist/: Build output directory (generated after running
ng build)
VSCode Configuration
The project includes VSCode configuration files in the.vscode/ directory:
Recommended Extensions
Install the Angular Language Service extension for the best development experience:.vscode/extensions.json
Debug Configuration
The project includes pre-configured launch configurations: Launch Development Server- Name:
ng serve - Opens Chrome and automatically starts the dev server
- URL:
http://localhost:4200/
- Name:
ng test - Opens Chrome and runs tests
- URL:
http://localhost:9876/debug.html
Available Scripts
The following npm scripts are available in package.json:TypeScript Configuration
The project uses strict TypeScript settings for better type safety:- Strict mode enabled
- No implicit returns
- Isolated modules
- ES2022 target
Next Steps
Testing
Learn how to write and run tests with Vitest
Building
Build your app for production deployment