system-prompts-and-models-o.../.github/Advanced_AI_Agent/examples/implementation/backend/install.js
dopeuni444 d43632a49a Removes outdated prompt files
Removes the `Chat Prompt.txt`, `VSCode Agent/Prompt.txt`, `Warp.dev/Prompt.txt`, and `v0 Prompts and Tools/Prompt.txt` files.

These files likely contain outdated prompts or configurations that are no longer needed in the current project. Removing them helps to clean up the codebase and prevent potential confusion or conflicts.
2025-07-31 01:45:01 +04:00

39 lines
1.2 KiB
JavaScript

const { execSync } = require('child_process');
const fs = require('fs');
const path = require('path');
console.log('🚀 Setting up Nowhere AI Agent Backend...');
// Check if package.json exists
if (!fs.existsSync('package.json')) {
console.error('❌ package.json not found');
process.exit(1);
}
// Create logs directory
if (!fs.existsSync('logs')) {
fs.mkdirSync('logs');
console.log('✅ Created logs directory');
}
// Create .env file from example if it doesn't exist
if (!fs.existsSync('.env') && fs.existsSync('env.example')) {
fs.copyFileSync('env.example', '.env');
console.log('✅ Created .env file from env.example');
}
console.log('📦 Installing dependencies...');
try {
// Try to install dependencies
execSync('npm install', { stdio: 'inherit' });
console.log('✅ Dependencies installed successfully');
} catch (error) {
console.error('❌ Failed to install dependencies:', error.message);
console.log('💡 Try running: npm install manually');
}
console.log('🎯 Nowhere AI Agent Backend setup complete!');
console.log('📝 Next steps:');
console.log(' 1. Edit .env file with your API keys');
console.log(' 2. Run: npm run dev');
console.log(' 3. Access the API at http://localhost:3001');