-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
70 lines (59 loc) · 2.96 KB
/
.env.example
File metadata and controls
70 lines (59 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 🔐 Chat Research Interface Environment Variables
#
# PRODUCTION STATUS: ✅ FULLY CONFIGURED FOR DEPLOYMENT
#
# INSTRUCTIONS: Copy this file to .env and fill in your actual values
#
# ⚠️ SECURITY: Never commit the .env file with real values to Git
# Only commit this .env.example template file
# 🤖 OpenAI Configuration (REQUIRED)
# Get your API key from: https://platform.openai.com/api-keys
# Required for GPT-4 chat functionality with research-optimized prompts
REACT_APP_OPENAI_API_KEY="sk-proj-your_actual_openai_api_key_here"
# 🗄️ Supabase Database Configuration (REQUIRED)
# Get these from your Supabase project dashboard: Settings → API
# Production-ready schema with Row Level Security and research analytics
REACT_APP_SUPABASE_URL="https://your-project-ref.supabase.co"
REACT_APP_SUPABASE_ANON_KEY="your_actual_supabase_anonymous_key_here"
# ⚙️ Application Configuration
# Session timeout in minutes (20 minutes optimized for research conversations)
REACT_APP_DEFAULT_TIMEOUT=20
# 🔧 Advanced Configuration (OPTIONAL)
# Enable debug logging in development
# REACT_APP_DEBUG_MODE=false
# Custom completion redirect URL (for non-Prolific studies)
# REACT_APP_COMPLETION_URL="https://your-redirect-url.com/complete"
# 🛠️ Development Configuration (OPTIONAL)
# Uncomment for development/testing environments
# NODE_ENV=development
# GENERATE_SOURCEMAP=false
# 📊 Analytics Configuration (OPTIONAL)
# Enable additional tracking for research optimization
# REACT_APP_ENABLE_ANALYTICS=true
# 🎯 Research Study Configuration (OPTIONAL)
# Customize study behavior without code changes
# REACT_APP_STUDY_NAME="AI Conversation Research"
# REACT_APP_MAX_PARTICIPANTS=500
# REACT_APP_ENABLE_DATA_EXPORT=true
# ✅ PRODUCTION DEPLOYMENT CHECKLIST:
# □ Replace all placeholder values with your actual credentials
# □ Verify OpenAI API key has GPT-4 access and sufficient credits
# □ Confirm Supabase project is active and database schema is deployed
# □ Test all 8 scenarios work locally: npm start
# □ Verify Prolific ID persistence across scenarios
# □ Test conversation data saves to Supabase correctly
# □ For Vercel deployment: Set these as environment variables in dashboard
# □ Test complete end-to-end flow including Qualtrics embedding
# 🚀 DEPLOYMENT STATUS:
# ✅ Frontend: Production-ready React app with TypeScript
# ✅ Database: Supabase with RLS policies and research schema
# ✅ AI Integration: GPT-4 with content moderation and safety features
# ✅ Qualtrics: Iframe embedding with persistent Prolific ID system
# ✅ Security: Environment variable protection and data privacy compliance
# ✅ Analytics: Real-time conversation tracking and export capabilities
# 🔗 Essential Links:
# OpenAI API Keys: https://platform.openai.com/api-keys
# Supabase Dashboard: https://supabase.com/dashboard
# Vercel Deployment: https://vercel.com/dashboard
# Complete Setup Guide: See DEPLOYMENT.md
# Qualtrics Integration: See QUALTRICS_INTEGRATION.md