Backend infrastructure: - PostgreSQL models (users, channels, messages, DMs, files, artifacts) - JWT authentication with password hashing - Auth API (register, login, logout, get user) - Channels API (create, list, join, leave) - Messages API with @grimlock mention detection - AI responds automatically when @mentioned - Background task processing for AI responses Database: - SQLAlchemy ORM models - Alembic ready for migrations - PostgreSQL + Redis in docker-compose Features working: - User registration and login - Create/join public channels - Send messages in channels - @grimlock triggers AI response with channel context - Real-time ready (WebSocket next) Next: WebSocket for real-time updates, frontend interface
28 lines
506 B
Plaintext
28 lines
506 B
Plaintext
# Grimlock Backend Configuration
|
|
|
|
# API Keys
|
|
ANTHROPIC_API_KEY=your-anthropic-api-key-here
|
|
|
|
# Server Configuration
|
|
HOST=0.0.0.0
|
|
PORT=8000
|
|
DEBUG=true
|
|
|
|
# Database
|
|
DATABASE_URL=postgresql://grimlock:grimlock@localhost:5432/grimlock
|
|
|
|
# Security
|
|
SECRET_KEY=your-secret-key-change-in-production-use-openssl-rand-hex-32
|
|
|
|
# Context Configuration
|
|
CONTEXT_PATH=/app/context
|
|
REPOS_PATH=/app/repos
|
|
|
|
# AI Configuration
|
|
AI_MODEL=claude-sonnet-4-5-20250514
|
|
AI_MAX_TOKENS=4096
|
|
AI_TEMPERATURE=0.7
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO
|