Initial commit: 5 Why Root Cause Analyzer v1.0.0
Phase 0 & Phase 2 completed: - Project structure setup - Environment configuration (.env, .gitignore) - Enterprise-grade dependencies (bcrypt, helmet, mysql2, etc.) - Complete database schema with 8 tables + 2 views - Database initialization scripts - Comprehensive documentation Database Tables: - users (user management with 3-tier permissions) - analyses (analysis records) - analysis_perspectives (multi-angle analysis) - analysis_whys (detailed 5 Why records) - llm_configs (LLM API configurations) - system_settings (system parameters) - audit_logs (security audit trail) - sessions (session management) Tech Stack: - Backend: Node.js + Express - Frontend: React 18 + Vite + Tailwind CSS - Database: MySQL 9.4.0 - AI: Ollama API (qwen2.5:3b) Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
35
.env.example
Normal file
35
.env.example
Normal file
@@ -0,0 +1,35 @@
|
||||
# Database Configuration
|
||||
DB_HOST=localhost
|
||||
DB_PORT=3306
|
||||
DB_USER=your_db_user
|
||||
DB_PASSWORD=your_db_password
|
||||
DB_NAME=5why_analyzer
|
||||
|
||||
# Server Configuration
|
||||
SERVER_HOST=localhost
|
||||
SERVER_PORT=3001
|
||||
CLIENT_PORT=5173
|
||||
|
||||
# Ollama API Configuration
|
||||
OLLAMA_API_URL=https://ollama_pjapi.theaken.com
|
||||
OLLAMA_MODEL=qwen2.5:3b
|
||||
|
||||
# LLM API Keys (Optional - for admin configuration)
|
||||
GEMINI_API_KEY=
|
||||
DEEPSEEK_API_KEY=
|
||||
OPENAI_API_KEY=
|
||||
|
||||
# Session Secret (Generate a random string)
|
||||
SESSION_SECRET=your-secret-key-here
|
||||
|
||||
# Admin Configuration
|
||||
ADMIN_EMAIL=admin@example.com
|
||||
ADMIN_PASSWORD_HASH=
|
||||
|
||||
# Security
|
||||
BCRYPT_ROUNDS=10
|
||||
RATE_LIMIT_MAX=100
|
||||
RATE_LIMIT_WINDOW_MS=900000
|
||||
|
||||
# Environment
|
||||
NODE_ENV=development
|
||||
Reference in New Issue
Block a user