workspace/projects/trading-platform/apps/backend/.env.example
rckrdmrd 49155822ae fix: Resolve TypeScript compilation errors across all projects
Platform Marketing Content:
- Add PaginationParams, PaginationMeta, PaginatedResponse interfaces
- Fix JwtAuthGuard import paths (common/guards instead of modules/auth)
- Add missing fields to CRM interfaces (address, keywords, features, benefits)
- Install @nestjs/throttler dependency

ERP Suite - Construccion:
- Create tsconfig.node.json for web frontend
- Add vite-env.d.ts for Vite types
- Fix implicit return errors in Express controllers
- Prefix unused parameters with underscore

ERP Suite - ERP Core:
- Export PoolClient type from database config
- Fix invoice type comparison (customer/supplier vs out_invoice)
- Refactor base.service.ts query handling for proper type inference
- Rename Role type to RoleType to avoid conflict with entity
- Fix ProtectedRoute to use role?.name instead of roles array

ERP Suite - POS Micro:
- Add vite-env.d.ts for Vite types
- Fix Sale property names (discountAmount, changeAmount)
- Export TodaySummary interface from sales service

All projects now pass npm install and npm run build successfully.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-08 22:35:55 -06:00

160 lines
6.0 KiB
Plaintext

# OrbiQuant IA - Backend Environment Variables
# ============================================================================
# App
# ============================================================================
NODE_ENV=development
PORT=3081
FRONTEND_URL=http://localhost:3080
API_URL=http://localhost:3081
# ============================================================================
# CORS
# ============================================================================
CORS_ORIGINS=http://localhost:3080,http://localhost:3081
# ============================================================================
# JWT
# ============================================================================
JWT_ACCESS_SECRET=your-access-secret-change-in-production-min-32-chars
JWT_REFRESH_SECRET=your-refresh-secret-change-in-production-min-32-chars
JWT_ACCESS_EXPIRES=15m
JWT_REFRESH_EXPIRES=7d
# ============================================================================
# Database (PostgreSQL)
# ============================================================================
DB_HOST=localhost
DB_PORT=5432
DB_NAME=orbiquant
DB_USER=postgres
DB_PASSWORD=postgres
DB_SSL=false
DB_POOL_MAX=20
DB_IDLE_TIMEOUT=30000
DB_CONNECTION_TIMEOUT=5000
# ============================================================================
# Redis
# ============================================================================
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# ============================================================================
# Stripe
# ============================================================================
STRIPE_SECRET_KEY=sk_test_...
STRIPE_PUBLISHABLE_KEY=pk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
# ============================================================================
# ML Engine
# ============================================================================
ML_ENGINE_URL=http://localhost:3083
ML_ENGINE_API_KEY=
ML_ENGINE_TIMEOUT=30000
# ============================================================================
# Trading Agents
# ============================================================================
TRADING_AGENTS_URL=http://localhost:3086
TRADING_AGENTS_TIMEOUT=60000
# ============================================================================
# LLM Agent (Local Python Service)
# ============================================================================
LLM_AGENT_URL=http://localhost:3085
LLM_AGENT_TIMEOUT=120000
# ============================================================================
# LLM Services (Cloud APIs - Fallback)
# ============================================================================
# Anthropic (Claude)
ANTHROPIC_API_KEY=sk-ant-...
# OpenAI (optional, fallback)
OPENAI_API_KEY=sk-...
# LLM Configuration
LLM_PROVIDER=anthropic
LLM_MODEL=claude-3-5-sonnet-20241022
LLM_MAX_TOKENS=4096
LLM_TEMPERATURE=0.7
# ============================================================================
# Binance API (Market Data)
# ============================================================================
BINANCE_API_KEY=
BINANCE_SECRET_KEY=
BINANCE_TESTNET=true
# ============================================================================
# Rate Limiting
# ============================================================================
RATE_LIMIT_WINDOW_MS=60000
RATE_LIMIT_MAX=100
# ============================================================================
# Email (SMTP)
# ============================================================================
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_SECURE=false
EMAIL_USER=your-email@gmail.com
EMAIL_PASSWORD=your-app-password
EMAIL_FROM=noreply@orbiquant.io
# ============================================================================
# Twilio (SMS/WhatsApp)
# ============================================================================
TWILIO_ACCOUNT_SID=your-twilio-account-sid
TWILIO_AUTH_TOKEN=your-twilio-auth-token
TWILIO_PHONE_NUMBER=+1234567890
TWILIO_WHATSAPP_NUMBER=+14155238886
TWILIO_VERIFY_SERVICE_SID=your-verify-service-sid
TWILIO_USE_VERIFY_SERVICE=true
# ============================================================================
# OAuth - Google
# ============================================================================
GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_CALLBACK_URL=http://localhost:3081/api/v1/auth/google/callback
# ============================================================================
# OAuth - Facebook
# ============================================================================
FACEBOOK_CLIENT_ID=your-facebook-app-id
FACEBOOK_CLIENT_SECRET=your-facebook-app-secret
FACEBOOK_CALLBACK_URL=http://localhost:3081/api/v1/auth/facebook/callback
# ============================================================================
# OAuth - Twitter/X
# ============================================================================
TWITTER_CLIENT_ID=your-twitter-client-id
TWITTER_CLIENT_SECRET=your-twitter-client-secret
TWITTER_CALLBACK_URL=http://localhost:3081/api/v1/auth/twitter/callback
# ============================================================================
# OAuth - Apple Sign In
# ============================================================================
APPLE_CLIENT_ID=your-apple-service-id
APPLE_CLIENT_SECRET=your-apple-client-secret
APPLE_TEAM_ID=your-apple-team-id
APPLE_KEY_ID=your-apple-key-id
APPLE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"
APPLE_CALLBACK_URL=http://localhost:3081/api/v1/auth/apple/callback
# ============================================================================
# OAuth - GitHub
# ============================================================================
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
GITHUB_CALLBACK_URL=http://localhost:3081/api/v1/auth/github/callback
# ============================================================================
# Logging
# ============================================================================
LOG_LEVEL=info