Major Features Implemented: - Full Vue.js 3 admin interface with Vite build system - OpenAI Chat Completions API integration (replaced deprecated Assistants API) - PostgreSQL database with Sequelize ORM - Complete conversation management system - User authentication system (admin@oliver.agency, user@oliver.agency) - AI-powered conversation title generation - Server-Sent Events for streaming responses - Conversation soft delete functionality - Rate limiting middleware with development bypass Backend Infrastructure: - Node.js/Express server with comprehensive error handling - Database models: User, Assistant, Conversation, Message - Chat API endpoints with full conversation history context - Conversation CRUD operations with soft delete - Migration and seeding scripts - Environment-based configuration Frontend Features: - Responsive Vue.js interface with router - Real-time chat with streaming responses - Conversation sidebar with delete functionality - Agent selection dropdown - Persistent user sessions with hash-based user IDs - Conversation history loading and continuity - Login system with user role management - Prominent logout functionality Technical Improvements: - Fixed conversation continuity by loading full message history - Implemented conversation title generation using GPT-4o-mini - Added conversation persistence mechanisms (periodic refresh, window focus) - Enhanced error handling and rate limiting - Proper environment variable management - Clean project structure with separated concerns 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
769 B
Bash
27 lines
769 B
Bash
# Database Configuration
|
|
DATABASE_URL=postgres://localhost:5432/ideas_gen_dev
|
|
DATABASE_HOST=localhost
|
|
DATABASE_NAME=ideas_gen_dev
|
|
DATABASE_USER=daveporter
|
|
DATABASE_PASS=
|
|
|
|
# Redis Configuration
|
|
REDIS_URL=redis://localhost:6379
|
|
|
|
# OpenAI Configuration (REQUIRED - Replace with your actual keys)
|
|
OPENAI_API_KEY=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
|
|
OPENAI_ORG_ID=org-HSioKMud1tZBdpWhBjJE6SLe
|
|
|
|
# Server Configuration
|
|
PORT=3000
|
|
NODE_ENV=development
|
|
|
|
# Development Flags
|
|
SKIP_AUTH=true
|
|
ENABLE_CORS=true
|
|
LOG_LEVEL=debug
|
|
SKIP_RATE_LIMITING=true
|
|
|
|
# Optional Features
|
|
ENABLE_TITLE_GENERATION=true
|
|
ENABLE_MODERATION=true
|