Hackathon-Phase-4 / .env.example
Claude Code - Backend Implementation Specialist
Deploy AI-powered Todo application to Hugging Face Spaces
f2b5c2a
# Backend Environment Variables
# Copy this file to .env and fill in your values
# Database Configuration
DATABASE_URL=sqlite:///./todo.db
# For production, use PostgreSQL:
# DATABASE_URL=postgresql://user:password@host:5432/database
# JWT Configuration
JWT_SECRET_KEY=your-super-secret-key-change-this-min-32-characters-long
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# CORS Configuration
CORS_ORIGINS=http://localhost:3000,http://localhost:3001,http://localhost:3002
# For production, add your frontend URL:
# CORS_ORIGINS=https://your-frontend-url.com,http://localhost:3000
# Gmail SMTP Configuration (for password reset emails)
# To get app-specific password:
# 1. Enable 2-Factor Authentication on your Gmail account
# 2. Go to Google Account → Security → 2-Step Verification → App passwords
# 3. Select "Mail" and "Other (Custom name)"
# 4. Copy the 16-character password
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your_email@gmail.com
SMTP_PASSWORD=your_app_specific_password_here
SMTP_USE_TLS=true
EMAIL_FROM=your_email@gmail.com
EMAIL_FROM_NAME=Todo Application
# Frontend URL (for password reset links)
FRONTEND_URL=http://localhost:3000
# For production:
# FRONTEND_URL=https://your-frontend-url.com
# Password Reset Configuration
PASSWORD_RESET_TOKEN_EXPIRY_MINUTES=15
PASSWORD_RESET_MAX_REQUESTS_PER_HOUR=3
# Cohere AI API Configuration
# Get your API key from: https://dashboard.cohere.com/api-keys
COHERE_API_KEY=your-cohere-api-key-here
# AI Chatbot Configuration
# Cohere model settings for conversational AI
COHERE_MODEL=command-r-plus
COHERE_TEMPERATURE=0.3
COHERE_MAX_TOKENS=2000
COHERE_TIMEOUT=30
# MCP Tools Configuration
MCP_SERVER_NAME=todo-tools
MCP_SERVER_VERSION=1.0.0