Phase 1 & 2: Authentication and Children Management
Completed Features:
- Full JWT authentication system with refresh tokens
- User registration and login with device fingerprinting
- Child profile CRUD operations with permission-based access
- Family management with roles and permissions
- Database migrations for core auth and family structure
- Comprehensive test coverage (37 unit + E2E tests)
Tech Stack:
- NestJS backend with TypeORM
- PostgreSQL database
- JWT authentication with Passport
- bcrypt password hashing
- Docker Compose for infrastructure
🤖 Generated with Claude Code
This commit is contained in:
73
.env.example
Normal file
73
.env.example
Normal file
@@ -0,0 +1,73 @@
|
||||
# Backend API Configuration
|
||||
API_PORT=3000
|
||||
API_URL=http://localhost:3000
|
||||
NODE_ENV=development
|
||||
|
||||
# Database Configuration
|
||||
DATABASE_HOST=localhost
|
||||
DATABASE_PORT=5432
|
||||
DATABASE_NAME=maternal_app
|
||||
DATABASE_USER=maternal_user
|
||||
DATABASE_PASSWORD=maternal_dev_password_2024
|
||||
|
||||
# Redis Configuration
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
|
||||
# MongoDB Configuration
|
||||
MONGODB_URI=mongodb://maternal_admin:maternal_mongo_password_2024@localhost:27017/maternal_ai_chat?authSource=admin
|
||||
|
||||
# MinIO Configuration
|
||||
MINIO_ENDPOINT=localhost
|
||||
MINIO_PORT=9000
|
||||
MINIO_ACCESS_KEY=maternal_minio_admin
|
||||
MINIO_SECRET_KEY=maternal_minio_password_2024
|
||||
MINIO_BUCKET=maternal-files
|
||||
|
||||
# JWT Configuration
|
||||
JWT_SECRET=your-super-secret-jwt-key-change-in-production
|
||||
JWT_EXPIRATION=1h
|
||||
JWT_REFRESH_SECRET=your-super-secret-refresh-key-change-in-production
|
||||
JWT_REFRESH_EXPIRATION=7d
|
||||
|
||||
# AI Services Configuration (OpenAI)
|
||||
OPENAI_API_KEY=sk-your-openai-api-key-here
|
||||
OPENAI_MODEL=gpt-4-turbo-preview
|
||||
OPENAI_MAX_TOKENS=1000
|
||||
|
||||
# AI Services Configuration (Anthropic Claude)
|
||||
ANTHROPIC_API_KEY=sk-ant-your-anthropic-api-key-here
|
||||
ANTHROPIC_MODEL=claude-3-sonnet-20240229
|
||||
|
||||
# AI Services Configuration (Google Gemini)
|
||||
GOOGLE_AI_API_KEY=your-google-ai-api-key-here
|
||||
|
||||
# Whisper API (Voice Recognition)
|
||||
WHISPER_API_KEY=your-whisper-api-key-here
|
||||
|
||||
# Firebase Cloud Messaging
|
||||
FCM_SERVER_KEY=your-fcm-server-key-here
|
||||
FCM_SENDER_ID=your-fcm-sender-id-here
|
||||
|
||||
# Rate Limiting
|
||||
RATE_LIMIT_TTL=60
|
||||
RATE_LIMIT_MAX=100
|
||||
|
||||
# CORS Configuration
|
||||
CORS_ORIGIN=http://localhost:19000,exp://localhost:19000
|
||||
|
||||
# Email Configuration (Optional - for email verification)
|
||||
SMTP_HOST=smtp.gmail.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=your-email@gmail.com
|
||||
SMTP_PASSWORD=your-app-password
|
||||
|
||||
# Sentry Error Tracking (Optional)
|
||||
SENTRY_DSN=your-sentry-dsn-here
|
||||
|
||||
# Analytics (Optional)
|
||||
POSTHOG_API_KEY=your-posthog-api-key-here
|
||||
|
||||
# App Configuration
|
||||
APP_NAME=Maternal App
|
||||
APP_VERSION=1.0.0
|
||||
Reference in New Issue
Block a user