Added comprehensive application launcher: - app.py - Python script to start both backend and frontend - start.bat - Windows batch file wrapper - START_HERE.md - Quick start guide with troubleshooting - Updated package.json with 'npm start' command Features: ✅ Pre-flight checks (Node.js, npm, dependencies, .env) ✅ Starts both backend (port 3001) and frontend (port 5173) ✅ Colored terminal output with status messages ✅ Process monitoring and health checks ✅ Graceful shutdown with Ctrl+C ✅ Cross-platform support (Windows/Linux/Mac) ✅ Automatic cleanup of child processes Usage: python app.py OR npm start OR (Windows only) start.bat Benefits: - Single command to start entire application - No need for multiple terminal windows - Automatic error detection and reporting - User-friendly colored output - Test account information displayed on startup - Easy for non-technical users Documentation: - START_HERE.md provides complete quick start guide - Includes troubleshooting section - Lists all access points and test accounts 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
49 lines
1.2 KiB
JSON
49 lines
1.2 KiB
JSON
{
|
|
"name": "5why-analyzer",
|
|
"version": "1.0.0",
|
|
"description": "5 Why Root Cause Analysis Tool with Ollama API Integration",
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "python app.py",
|
|
"dev": "concurrently \"npm run server\" \"npm run client\"",
|
|
"server": "node server.js",
|
|
"client": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"db:init": "node scripts/init-database.js",
|
|
"db:test": "node scripts/test-db-connection.js",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"keywords": [
|
|
"5why",
|
|
"root-cause-analysis",
|
|
"ollama",
|
|
"qwen"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"express": "^4.18.2",
|
|
"cors": "^2.8.5",
|
|
"axios": "^1.6.2",
|
|
"dotenv": "^16.3.1",
|
|
"bcryptjs": "^2.4.3",
|
|
"express-session": "^1.17.3",
|
|
"express-rate-limit": "^7.1.5",
|
|
"mysql2": "^3.6.5",
|
|
"helmet": "^7.1.0",
|
|
"csv-parser": "^3.0.0",
|
|
"json2csv": "^6.0.0-alpha.2",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"vite": "^5.0.8",
|
|
"concurrently": "^8.2.2",
|
|
"tailwindcss": "^3.4.0",
|
|
"postcss": "^8.4.32",
|
|
"autoprefixer": "^10.4.16"
|
|
}
|
|
}
|