first commit

This commit is contained in:
Nikhil-Doye
2025-10-14 20:08:03 -04:00
commit 863389e3e5
34 changed files with 21012 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
# Agent Workflow Builder Setup Script for Windows
Write-Host "🚀 Setting up Agent Workflow Builder..." -ForegroundColor Green
# Check if Node.js is installed
try {
$nodeVersion = node -v
Write-Host "✅ Node.js $nodeVersion detected" -ForegroundColor Green
} catch {
Write-Host "❌ Node.js is not installed. Please install Node.js 16+ and try again." -ForegroundColor Red
exit 1
}
# Check Node.js version
$versionNumber = [int]($nodeVersion -replace 'v(\d+)\..*', '$1')
if ($versionNumber -lt 16) {
Write-Host "❌ Node.js version 16+ is required. Current version: $nodeVersion" -ForegroundColor Red
exit 1
}
# Install dependencies
Write-Host "📦 Installing dependencies..." -ForegroundColor Yellow
npm install
if ($LASTEXITCODE -eq 0) {
Write-Host "✅ Dependencies installed successfully" -ForegroundColor Green
} else {
Write-Host "❌ Failed to install dependencies" -ForegroundColor Red
exit 1
}
# Create .env file if it doesn't exist
if (!(Test-Path .env)) {
Write-Host "📝 Creating .env file..." -ForegroundColor Yellow
@"
# Agent Workflow Builder Environment Variables
REACT_APP_VERSION=1.0.0
REACT_APP_NAME=Agent Workflow Builder
"@ | Out-File -FilePath .env -Encoding UTF8
Write-Host "✅ .env file created" -ForegroundColor Green
}
Write-Host ""
Write-Host "🎉 Setup complete! You can now run:" -ForegroundColor Green
Write-Host " npm start - Start the development server" -ForegroundColor Cyan
Write-Host " npm run build - Build for production" -ForegroundColor Cyan
Write-Host ""
Write-Host "🌐 The application will be available at http://localhost:3000" -ForegroundColor Cyan
+49
View File
@@ -0,0 +1,49 @@
#!/bin/bash
# Agent Workflow Builder Setup Script
echo "🚀 Setting up Agent Workflow Builder..."
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "❌ Node.js is not installed. Please install Node.js 16+ and try again."
exit 1
fi
# Check Node.js version
NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)
if [ "$NODE_VERSION" -lt 16 ]; then
echo "❌ Node.js version 16+ is required. Current version: $(node -v)"
exit 1
fi
echo "✅ Node.js $(node -v) detected"
# Install dependencies
echo "📦 Installing dependencies..."
npm install
if [ $? -eq 0 ]; then
echo "✅ Dependencies installed successfully"
else
echo "❌ Failed to install dependencies"
exit 1
fi
# Create .env file if it doesn't exist
if [ ! -f .env ]; then
echo "📝 Creating .env file..."
cat > .env << EOF
# Agent Workflow Builder Environment Variables
REACT_APP_VERSION=1.0.0
REACT_APP_NAME=Agent Workflow Builder
EOF
echo "✅ .env file created"
fi
echo ""
echo "🎉 Setup complete! You can now run:"
echo " npm start - Start the development server"
echo " npm run build - Build for production"
echo ""
echo "🌐 The application will be available at http://localhost:3000"