| # 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 "" | |