| 44 | } |
| 45 | |
| 46 | createEnvFile() { |
| 47 | console.log('\n🔧 Creating environment configuration...'); |
| 48 | |
| 49 | const envPath = path.join(this.projectRoot, '.env'); |
| 50 | const envExampleContent = ` |
| 51 | # GitHub API Configuration (Optional - for higher rate limits) |
| 52 | # Get your token from: https://github.com/settings/tokens |
| 53 | GITHUB_TOKEN=your_github_token_here |
| 54 | |
| 55 | # Server Configuration |
| 56 | NODE_ENV=production |
| 57 | PORT=3000 |
| 58 | |
| 59 | # Database Configuration |
| 60 | DB_PATH=./data/icss.db |
| 61 | `; |
| 62 | |
| 63 | if (!fs.existsSync(envPath)) { |
| 64 | fs.writeFileSync(envPath, envExampleContent); |
| 65 | console.log(' ✅ Created .env file'); |
| 66 | } else { |
| 67 | console.log(' ℹ️ .env file already exists'); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | showNextSteps() { |
| 72 | console.log('\n🎉 Setup completed! Next steps:\n'); |