Installation Guide
This guide covers the complete installation process for Biométrico, from initial setup to production deployment.System Requirements
Node.js
Version 14.x or higher (LTS recommended)
npm
Version 6.x or higher (comes with Node.js)
Operating System
Windows, macOS, or Linux
Browser Support
Modern browsers (> 1%, last 2 versions, not IE 11)
The application is built with Vue 3 and requires a modern JavaScript environment. Internet Explorer 11 is not supported.
Installation Steps
Step 1: Clone or Download the Project
First, obtain the Biométrico source code:Step 2: Install Dependencies
Install all required npm packages:package.json, including:
Core Framework Dependencies
Core Framework Dependencies
UI & Styling Dependencies
UI & Styling Dependencies
Data Visualization Dependencies
Data Visualization Dependencies
Utility Dependencies
Utility Dependencies
Document Generation Dependencies
Document Generation Dependencies
Step 3: Configure Environment
Biométrico uses webpack DefinePlugin for configuration. The API URL is configured invue.config.js:
vue.config.js
Development Setup
Run Development Server
Start the local development server with hot-reload:The development server typically runs on
http://localhost:8080. The exact URL will be displayed in the terminal.Project Structure
Understand the key directories:Application Entry Point
The application initializes insrc/main.js:
src/main.js
Production Build
Build for Production
Create an optimized production build:- Compiles and minifies all source files
- Optimizes assets (images, CSS, JS)
- Generates files with content hashes for cache busting
- Creates the
dist/directory with production-ready files
Production builds have
productionSourceMap: false to prevent exposing source code. Only the minified code is included.Deploy Production Build
Thedist/ folder contains all files needed for deployment:
Configure Server Routes
For Vue Router history mode, configure your server to redirect all routes to Nginx:
index.html:Apache (.htaccess):Backend API Setup
Biométrico requires a backend API for authentication and data management.API Endpoints Required
Ensure your backend provides these endpoints:CORS Configuration
Configure CORS on your backend to allow requests from the frontend:Laravel Example
Troubleshooting
npm install fails
npm install fails
Issue: Dependency installation errorsSolutions:
- Clear npm cache:
npm cache clean --force - Delete
node_modulesandpackage-lock.json, then reinstall - Use a specific Node.js version with nvm:
nvm use 16 - Check for network/firewall issues
- Try using
--legacy-peer-depsflag:npm install --legacy-peer-deps
Development server won't start
Development server won't start
Issue:
npm run serve failsSolutions:- Check if port 8080 is already in use
- Kill existing Node processes:
killall node - Try a different port:
PORT=3000 npm run serve - Check for syntax errors in
vue.config.js - Ensure all dependencies are installed
API requests fail with CORS errors
API requests fail with CORS errors
Issue: Browser blocks API requestsSolutions:
- Configure CORS headers on backend
- Use the dev server proxy in
vue.config.js - Check that API URL is correct in webpack config
- Verify backend is running and accessible
Production build errors
Production build errors
Issue:
npm run build failsSolutions:- Check for unused imports or undefined variables
- Ensure all environment variables are set
- Verify all dependencies are in
dependenciesnotdevDependencies - Increase Node memory:
NODE_OPTIONS=--max_old_space_size=4096 npm run build - Review error messages for specific file/line issues
Authentication not working
Authentication not working
Issue: Login fails or tokens not storedSolutions:
- Check browser console for errors
- Verify API endpoint is correct
- Ensure localStorage is not blocked (private browsing)
- Check backend returns correct token format
- Verify role is one of:
sotics,atics,sa
Security Considerations
Update Dependencies
Regularly check for security updates:Next Steps
After successful installation:Quickstart Guide
Complete your first student registration
Configuration
Advanced configuration options
API Integration
Connect to backend services
Deployment
Production deployment strategies