πΉπ· TΓΌrkΓ§e: DetaylΔ± proje aΓ§Δ±klamasΔ± iΓ§in backend/PROJE_OZETI.md dosyasΔ±na bakΔ±nΔ±z.
Full-stack AI-powered platform for real-time audio processing, video conferencing, CRM integrations, and intelligent conversation analysis.
- Real-time Audio Processing: WebSocket-based streaming with OpenAI Realtime API
- LiveKit Integration: Self-hosted WebRTC video conferencing
- Speaker Diarization: Automatic speaker identification and segmentation
- CRM Integrations: HubSpot, Salesforce, Pipedrive connectors
- Intelligent Caching: Redis-based query optimization
- Vector Search: PostgreSQL + pgvector for semantic search
- MCP Service: Natural language to SQL conversion
- Monitoring: Prometheus + Grafana dashboards
- Modern UI: Metronic UI theme with Bootstrap
- LiveKit Components: Real-time video/audio conferencing
- Meeting Management: Create, join, and manage meetings
- Real-time Transcripts: Live transcription display
- CRM Dashboard: Integrated CRM data visualization
- Responsive Design: Mobile-friendly interface
ai-agent-fullstack/
βββ backend/ # FastAPI backend
β βββ api/ # REST API endpoints
β βββ services/ # Business logic
β βββ models/ # SQLAlchemy models
β βββ schemas/ # Pydantic schemas
β βββ crm/ # CRM integrations
β βββ docker-compose.yml # Backend services
β βββ requirements.txt # Python dependencies
β βββ README.md # Backend documentation
β
βββ frontend/ # React frontend
β βββ src/ # Source code
β β βββ app/ # Main app components
β β βββ _metronic/ # Metronic UI theme
β β βββ pages/ # Page components
β βββ public/ # Static files
β βββ package.json # Node dependencies
β βββ README.md # Frontend documentation
β
βββ docs/ # Shared documentation
β βββ ARCHITECTURE.md # System architecture
β βββ DEPLOYMENT.md # Deployment guide
β βββ DEVELOPMENT.md # Development guide
β
βββ docker-compose.yml # Full-stack orchestration
βββ .gitignore # Git ignore rules
βββ README.md # This file
- Docker & Docker Compose (recommended)
- Python 3.11+ (for local backend development)
- Node.js 18+ (for local frontend development)
- Git
# Clone repository
git clone https://github.com/YOUR_USERNAME/ai-agent-fullstack.git
cd ai-agent-fullstack
# Setup environment variables
cp backend/.env.example backend/.env.docker
# Edit backend/.env.docker and backend/.env.secrets with your keys
# Start all services
docker-compose up -d
# Run migrations
docker exec backend alembic upgrade head
# Access services
# Frontend: http://localhost:3000
# Backend API: http://localhost:8001
# API Docs: http://localhost:8001/docs
# Grafana: http://localhost:3000cd backend
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Setup environment
cp .env.example .env.local
# Edit .env.local with your configuration
# Start services (PostgreSQL, Redis, etc.)
docker-compose up -d postgresql redis minio nats livekit
# Run migrations
alembic upgrade head
# Start backend
uvicorn main:app --reload --port 8001cd frontend
# Install dependencies
npm install
# Setup environment
cp .env.example .env.local
# Edit .env.local with backend URL
# Start development server
npm run devCreate backend/.env.docker and backend/.env.secrets:
# Required
OPENAI_API_KEY=sk-your-openai-key
DATABASE_URI=postgresql+psycopg://postgres:password@postgresql:5432/ai_agent
REDIS_HOST=redis
REDIS_PORT=6379
# LiveKit
LIVEKIT_API_KEY=your-livekit-key
LIVEKIT_API_SECRET=your-livekit-secret
LIVEKIT_URL=ws://livekit:7880
# Optional CRM
HUBSPOT_CLIENT_ID=
HUBSPOT_CLIENT_SECRET=Create frontend/.env.local:
VITE_API_URL=http://localhost:8001
VITE_LIVEKIT_URL=ws://localhost:7880- Architecture - System design and components
- Deployment - Production deployment guide
- Development - Development workflow
- Backend README - Backend-specific documentation
- TΓΌrkΓ§e Γzet - Project summary in Turkish
- API Docs - Interactive Swagger UI (when running)
- Frontend README - Frontend-specific documentation
cd backend
pytest
pytest --cov=services --cov-report=htmlcd frontend
npm run test
npm run lint# Build images
docker-compose build
# Start production stack
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
# Check status
docker-compose psSee docs/DEPLOYMENT.md for detailed production deployment instructions.
| Service | Port | Description |
|---|---|---|
| Frontend | 3000 | React development server |
| Backend API | 8001 | FastAPI backend |
| PostgreSQL | 5432 | Database |
| Redis | 6379 | Cache & pub/sub |
| LiveKit | 7880-7882 | WebRTC server |
| MinIO | 9000, 9001 | Object storage |
| Grafana | 3000 | Monitoring dashboards |
| Prometheus | 9090 | Metrics collection |
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Backend: FastAPI, PostgreSQL, Redis, LiveKit, OpenAI
- Frontend: React, Vite, Metronic UI, Bootstrap
- Infrastructure: Docker, Prometheus, Grafana
Made with β€οΈ by Umut Baran ΓiΓ§ek