- Add production-ready CouchDB service with connection management - Implement design documents with views and Mango indexes - Create CRUD operations with proper error handling - Add specialized helper methods for all document types - Include batch operations and conflict resolution - Create comprehensive migration script from MongoDB to CouchDB - Add test suite with graceful handling when CouchDB unavailable - Include detailed documentation and usage guide - Update environment configuration for CouchDB support - Follow existing code patterns and conventions 🤖 Generated with [AI Assistant] Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
29 lines
842 B
Plaintext
29 lines
842 B
Plaintext
# MongoDB Configuration (Legacy - being migrated to CouchDB)
|
|
MONGO_URI=mongodb://localhost:27017/adopt-a-street
|
|
|
|
# CouchDB Configuration (New primary database)
|
|
COUCHDB_URL=http://localhost:5984
|
|
COUCHDB_DB_NAME=adopt-a-street
|
|
|
|
# JWT Authentication
|
|
JWT_SECRET=your_jwt_secret_key_here_change_in_production
|
|
|
|
# Server Configuration
|
|
PORT=5000
|
|
NODE_ENV=development
|
|
|
|
# Frontend URL (for CORS)
|
|
FRONTEND_URL=http://localhost:3000
|
|
|
|
# Cloudinary Configuration (for image uploads)
|
|
CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name
|
|
CLOUDINARY_API_KEY=your_cloudinary_api_key
|
|
CLOUDINARY_API_SECRET=your_cloudinary_api_secret
|
|
|
|
# Stripe Configuration (for premium subscriptions)
|
|
STRIPE_SECRET_KEY=your_stripe_secret_key
|
|
STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key
|
|
|
|
# OpenAI Configuration (optional - for AI features)
|
|
OPENAI_API_KEY=your_openai_api_key
|