Area51base/cc-chatbot
0
1#!/usr/bin/env bash2# ─────────────────────────────────────────────────────────────────────────────3# setup.sh — One-command project setup4# ─────────────────────────────────────────────────────────────────────────────5set -e6 7echo ""8echo "╔══════════════════════════════════════════════════════╗"9echo "║ CC AI Chatbot — Project Setup ║"10echo "╚══════════════════════════════════════════════════════╝"11echo ""12 13# 1. Create virtual environment14if [ ! -d ".venv" ]; then15 echo "→ Creating virtual environment..."16 python3 -m venv .venv17fi18 19# 2. Activate20source .venv/bin/activate21 22# 3. Upgrade pip23echo "→ Upgrading pip..."24pip install --upgrade pip -q25 26# 4. Install dependencies27echo "→ Installing dependencies..."28pip install -r requirements.txt -q29 30# 5. Install package in dev mode31echo "→ Installing cc_chatbot package..."32pip install -e . -q33 34# 6. Create .env from example if not present35if [ ! -f ".env" ]; then36 cp .env.example .env37 echo "→ Created .env from .env.example"38 echo " ⚠️ Edit .env and add your GEMINI_API_KEY before starting!"39fi40 41# 7. Create data directories42mkdir -p data/chroma_db data/raw_cache43 44echo ""45echo "✅ Setup complete!"46echo ""47echo "Next steps:"48echo " 1. Edit .env and set GEMINI_API_KEY"49echo " 2. Run ingestion: python scripts/ingest.py"50echo " 3. Start API: uvicorn cc_chatbot.main:app --reload"51echo " 4. Start UI: streamlit run ui/streamlit_app.py"52echo ""53 