Initial commit: Project structure and layout

This commit is contained in:
2026-04-22 01:45:29 +08:00
commit 481555c257
67 changed files with 17248 additions and 0 deletions

57
server/.env.example Normal file
View File

@@ -0,0 +1,57 @@
# =====================================================
# Server Configuration
# =====================================================
NODE_ENV=development
PORT=3000
API_PREFIX=/api
# =====================================================
# Database Configuration (File-based, no DB server needed)
# =====================================================
DB_TYPE=better-sqlite3
DB_DATABASE=./data/db/app.db
# =====================================================
# JWT Authentication
# =====================================================
JWT_SECRET=change-this-to-a-random-string-at-least-32-chars
JWT_EXPIRES_IN=7d
JWT_REFRESH_SECRET=change-this-to-another-random-string
JWT_REFRESH_EXPIRES_IN=30d
# =====================================================
# LLM Provider API Keys (Backend Only - Secure)
# =====================================================
OPENAI_API_KEY=sk-your-openai-api-key-here
ANTHROPIC_API_KEY=sk-ant-your-anthropic-api-key-here
GOOGLE_API_KEY=your-google-api-key-here
LOCAL_LLM_URL=http://localhost:11434
# =====================================================
# File Storage
# =====================================================
UPLOAD_DIR=./data/files
MAX_FILE_SIZE=10485760
# =====================================================
# CORS Configuration
# =====================================================
CORS_ORIGIN=http://localhost:23338
# =====================================================
# Rate Limiting
# =====================================================
RATE_LIMIT_TTL=60
RATE_LIMIT_MAX=100
# =====================================================
# Workflow Configuration
# =====================================================
WORKFLOW_MAX_PARALLEL=5
WORKFLOW_TIMEOUT=300000
# =====================================================
# Logging
# =====================================================
LOG_LEVEL=debug
LOG_DIR=./data/logs