Prerequisites
Before you begin, ensure you have the following installed on your system:Node.js
Version 18.x or higher required
npm
Version 9.x or higher (comes with Node.js)
Git
For cloning the repository
Firebase CLI
Optional, for Firebase deployments
BarberApp is built with Angular 20 and uses modern JavaScript features. Make sure your Node.js version supports ES2022.
Installation Steps
Install Dependencies
Install all project dependencies using npm:This will install the following key dependencies:
Core Framework
Core Framework
- @angular/core (^20.1.0) - Angular framework
- @angular/router (^20.1.0) - Client-side routing
- @angular/forms (^20.1.0) - Reactive forms
- @angular/cdk (^20.2.5) - Component Dev Kit
Firebase Integration
Firebase Integration
- @angular/fire (^20.0.1) - Angular Firebase library
- firebase (^11.10.0) - Firebase SDK
Styling & UI
Styling & UI
- tailwindcss (^4.1.13) - Utility-first CSS framework
- @tailwindcss/postcss (^4.1.13) - PostCSS plugin
- swiper (^12.0.2) - Touch slider library
Utilities
Utilities
- rxjs (~7.8.0) - Reactive programming
- jspdf (^3.0.3) - PDF generation
- zone.js (~0.15.0) - Change detection
Verify Installation
Verify that all dependencies were installed correctly:You should see all the packages listed without any errors.
Available npm Scripts
BarberApp includes several npm scripts for development and building:Development Tools
The project includes the following development dependencies:- @angular/cli (^20.1.3) - Angular command-line interface
- @angular/build (^20.1.3) - Angular build system
- TypeScript (~5.8.2) - Type-safe JavaScript
- Karma & Jasmine - Testing framework
Project Structure
After installation, your project structure should look like this:Next Steps
Configuration
Configure environment variables and application settings
Firebase Setup
Set up Firebase authentication, Firestore, and hosting
Architecture
Learn about BarberApp’s clean architecture
Technical Reference
Understand facades and Angular Signals patterns
Troubleshooting
Node version mismatch
Node version mismatch
npm install fails
npm install fails
If
npm install fails, try:Port 4200 already in use
Port 4200 already in use
If port 4200 is already in use, you can specify a different port:
Angular CLI not found
Angular CLI not found
If
ng command is not found, install Angular CLI globally: