Initial commit: Inventory Barcode System

This commit is contained in:
2025-07-22 20:24:51 -04:00
commit 511b01748d
63 changed files with 26932 additions and 0 deletions

42
.env.example Normal file
View File

@ -0,0 +1,42 @@
# Environment Configuration Template
# Copy this file to .env and update values for your environment
# Server Configuration
NODE_ENV=production
PORT=3000
HOST=0.0.0.0
# Database Configuration
DATABASE_PATH=./inventory.db
DATABASE_BACKUP_PATH=./data/backups
DATABASE_BACKUP_INTERVAL=3600000
# File Upload Configuration
UPLOAD_MAX_SIZE=10485760
UPLOAD_ALLOWED_TYPES=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel
TEMP_DIR=./data/temp
# Export Configuration
EXPORT_DIR=./data/exports
EXPORT_RETENTION_DAYS=30
# Logging Configuration
LOG_LEVEL=info
LOG_DIR=./logs
LOG_MAX_SIZE=10m
LOG_MAX_FILES=14d
# Security Configuration
CORS_ORIGIN=*
HELMET_CSP_ENABLED=true
REQUEST_TIMEOUT=30000
# Performance Configuration
CACHE_TTL=300000
MAX_CONCURRENT_IMPORTS=3
QUERY_TIMEOUT=5000
# Backup Configuration
BACKUP_ENABLED=true
BACKUP_SCHEDULE=0 2 * * *
BACKUP_RETENTION_DAYS=30