Prerequisites
Before installing Odontología Frontend, ensure you have the following software installed on your system:Required Software
Node.js
Version: 20.x or higher (LTS recommended)Download from nodejs.org
npm
Version: 11.6.1 or higherComes bundled with Node.js
This project uses npm 11.6.1 as specified in the
packageManager field. While other package managers like yarn or pnpm may work, npm is the officially supported package manager.Verify Installation
Check that Node.js and npm are properly installed:Angular CLI (Optional)
While not strictly required (the project includes Angular CLI as a dev dependency), installing Angular CLI globally can be convenient:Installation Steps
Clone the Repository
Clone the Odontología Frontend repository to your local machine:Replace
<repository-url> with the actual repository URL.Install Dependencies
Install all required npm packages:This command will:Expected Output:
- Install all production dependencies (Angular, RxJS, Express, Boxicons)
- Install all development dependencies (Angular CLI, TypeScript, Vitest)
- Set up Angular build tools
- Configure the development environment
The installation may take 2-5 minutes depending on your internet connection and system speed.
Installed Dependencies
Production Dependencies
These packages are required to run the application:| Package | Version | Purpose |
|---|---|---|
@angular/common | 21.1.0 | Angular common utilities and directives |
@angular/compiler | 21.1.0 | Angular template compiler |
@angular/core | 21.1.0 | Core Angular framework |
@angular/forms | 21.1.0 | Form handling and validation |
@angular/platform-browser | 21.1.0 | Browser-specific rendering |
@angular/platform-server | 21.1.0 | Server-side rendering support |
@angular/router | 21.1.0 | Client-side routing |
@angular/ssr | 21.1.4 | Server-side rendering utilities |
boxicons | 2.1.4 | Icon library |
express | 5.1.0 | Web server for SSR |
rxjs | 7.8.0 | Reactive programming library |
tslib | 2.8.1 | TypeScript runtime library |
Development Dependencies
These packages are only needed during development:| Package | Version | Purpose |
|---|---|---|
@angular/build | 21.1.4 | Angular build system |
@angular/cli | 21.1.4 | Angular command-line interface |
@angular/compiler-cli | 21.1.0 | Angular compiler CLI |
@types/express | 5.0.1 | TypeScript definitions for Express |
@types/node | 20.17.19 | TypeScript definitions for Node.js |
jsdom | 27.1.0 | DOM implementation for testing |
typescript | 5.9.2 | TypeScript compiler |
vitest | 4.0.8 | Testing framework |
Project Structure
After installation, your project structure will look like this:Configuration Files
TypeScript Configuration
The project uses strict TypeScript settings for maximum type safety:Angular Configuration
Theangular.json file defines:
- Build configuration for development and production
- Asset management (Boxicons CSS)
- Server-side rendering setup
- Bundle size budgets (500kB warning, 1MB error)
Troubleshooting
Common Installation Issues
npm install fails with EACCES error
npm install fails with EACCES error
This typically indicates permission issues. Try:
Node version incompatibility
Node version incompatibility
Ensure you’re using Node.js 20.x or higher:If using nvm (Node Version Manager):
Slow installation / timeout errors
Slow installation / timeout errors
Try clearing the npm cache:Or increase the timeout:
Peer dependency warnings
Peer dependency warnings
Peer dependency warnings are usually informational and won’t prevent the app from running. However, if you encounter issues:
Next Steps
Quick Start
Now that you have installed all dependencies, learn how to run the application locally and start development.