venesis / setup.sh
JohnGFX's picture
Venegard AI Hub - production release
ca812a1
#!/bin/bash
# Setup script for Sales Intelligence Hub
echo "πŸš€ Sales Intelligence Hub - Setup Script"
echo "=========================================="
echo ""
# Check Python version
python3 --version 2>/dev/null
if [ $? -ne 0 ]; then
echo "❌ Python 3 is required but not installed."
exit 1
fi
echo "βœ… Python 3 found"
echo ""
# Install dependencies
echo "πŸ“¦ Installing dependencies..."
python3 -m pip install -r requirements.txt 2>&1 | tail -5
echo ""
echo "βœ… Dependencies installed"
echo ""
# Check .env file
if [ ! -f .env ]; then
echo "⚠️ .env file not found"
echo "πŸ“‹ Creating .env from .env.example..."
cp .env.example .env
echo "πŸ”‘ Please update .env with your Google API key!"
echo ""
echo " Required: GOOGLE_API_KEY=your_api_key_here"
echo ""
fi
# Create data directory
mkdir -p data logs
echo "βœ… Setup complete!"
echo ""
echo "🎯 Next steps:"
echo " 1. Update .env with your Google API key"
echo " 2. Run: streamlit run app.py"
echo " 3. Open: http://localhost:8501"
echo ""