Files
manus_ai_clone/setup.sh
T
2025-11-05 01:03:10 +01:00

70 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
# Manus AI Clone - Setup Script
# This script sets up the complete frontend and backend
set -e
echo "🤖 Manus AI Clone - Setup Script"
echo "================================"
echo ""
# Check if uv is installed
if ! command -v uv &> /dev/null; then
echo "❌ Error: uv is not installed"
echo "Please install uv first: pip install uv"
exit 1
fi
echo "✅ uv found"
echo ""
# Create virtual environment if it doesn't exist
if [ ! -d ".venv" ]; then
echo "📦 Creating virtual environment..."
uv venv
echo "✅ Virtual environment created"
else
echo "✅ Virtual environment already exists"
fi
echo ""
# Activate virtual environment
echo "🔌 Activating virtual environment..."
source .venv/bin/activate
echo ""
# Install Python dependencies
echo "📥 Installing Python dependencies..."
uv pip install -e .
echo ""
# Install Playwright browsers
echo "🌐 Installing Playwright browsers..."
playwright install chromium
echo ""
# Create .env file if it doesn't exist
if [ ! -f ".env" ]; then
echo "📝 Creating .env file..."
cp .env.example .env
echo "⚠️ Please edit .env and add your OPENAI_API_KEY"
else
echo "✅ .env file already exists"
fi
echo ""
echo "================================"
echo "✨ Setup Complete!"
echo ""
echo "Next steps:"
echo "1. Edit .env and add your OPENAI_API_KEY"
echo "2. Run: python main.py"
echo "3. Open: http://localhost:8000"
echo ""
echo "🎉 Enjoy your Manus AI Clone!"