workspace/core/devtools/environment/templates/.env.backend.template
rckrdmrd ea1879f4ad feat: Initial workspace structure with multi-level Git configuration
- Configure workspace Git repository with comprehensive .gitignore
- Add Odoo as submodule for ERP reference code
- Include documentation: SETUP.md, GIT-STRUCTURE.md
- Add gitignore templates for projects (backend, frontend, database)
- Structure supports independent repos per project/subproject level

Workspace includes:
- core/ - Reusable patterns, modules, orchestration system
- projects/ - Active projects (erp-suite, gamilit, trading-platform, etc.)
- knowledge-base/ - Reference code and patterns (includes Odoo submodule)
- devtools/ - Development tools and templates
- customers/ - Client implementations template

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-08 10:44:23 -06:00

93 lines
3.4 KiB
Plaintext

# =============================================================================
# ${PROJECT_NAME} Backend - Environment Configuration
# =============================================================================
# Template generado por NEXUS-DEVENV
# Proyecto: ${PROJECT_NAME}
# Fecha: ${DATE}
# =============================================================================
# -----------------------------------------------------------------------------
# SERVER CONFIGURATION
# -----------------------------------------------------------------------------
NODE_ENV=development
PORT=${BACKEND_PORT}
API_PREFIX=api
API_VERSION=v1
# -----------------------------------------------------------------------------
# DATABASE CONFIGURATION
# -----------------------------------------------------------------------------
DB_HOST=localhost
DB_PORT=${DB_PORT}
DB_NAME=${DB_NAME}
DB_USER=${DB_USER}
DB_PASSWORD=${DB_PASSWORD}
DB_SYNCHRONIZE=false
DB_LOGGING=true
DB_SSL=false
# -----------------------------------------------------------------------------
# JWT CONFIGURATION
# -----------------------------------------------------------------------------
JWT_SECRET=${PROJECT_SLUG}-jwt-secret-change-in-production
JWT_EXPIRES_IN=15m
JWT_REFRESH_SECRET=${PROJECT_SLUG}-refresh-secret-change-in-production
JWT_REFRESH_EXPIRES_IN=7d
# -----------------------------------------------------------------------------
# CORS CONFIGURATION
# -----------------------------------------------------------------------------
CORS_ORIGIN=http://localhost:${FRONTEND_PORT}
ENABLE_CORS=true
# -----------------------------------------------------------------------------
# SWAGGER/OPENAPI
# -----------------------------------------------------------------------------
ENABLE_SWAGGER=true
SWAGGER_TITLE=${PROJECT_NAME} API
SWAGGER_DESCRIPTION=API Documentation for ${PROJECT_NAME}
SWAGGER_VERSION=1.0.0
# -----------------------------------------------------------------------------
# LOGGING
# -----------------------------------------------------------------------------
LOG_LEVEL=debug
LOG_TO_FILE=false
LOG_DIR=./logs
# -----------------------------------------------------------------------------
# RATE LIMITING
# -----------------------------------------------------------------------------
THROTTLE_TTL=60
THROTTLE_LIMIT=100
# -----------------------------------------------------------------------------
# CACHE (Redis - Optional)
# -----------------------------------------------------------------------------
# REDIS_HOST=localhost
# REDIS_PORT=${REDIS_PORT}
# REDIS_PASSWORD=
# REDIS_DB=0
# -----------------------------------------------------------------------------
# EXTERNAL SERVICES (Optional)
# -----------------------------------------------------------------------------
# ML_SERVICE_URL=http://localhost:${ML_SERVICE_PORT}
# ML_SERVICE_TIMEOUT=30000
# -----------------------------------------------------------------------------
# EMAIL (Optional)
# -----------------------------------------------------------------------------
# SMTP_HOST=
# SMTP_PORT=587
# SMTP_USER=
# SMTP_PASSWORD=
# SMTP_FROM=noreply@${PROJECT_SLUG}.local
# -----------------------------------------------------------------------------
# FILE UPLOADS (Optional)
# -----------------------------------------------------------------------------
# UPLOAD_DIR=./uploads
# MAX_FILE_SIZE=10485760
# ALLOWED_MIME_TYPES=image/jpeg,image/png,application/pdf