moxie-backend/.env.example
Z User 55335f14e7 Initial commit: Express backend with user management and SQLite database
Features:
- Express server on port 9991 with ESM syntax
- User registration, login, and session management
- Password hashing with bcryptjs
- SQLite database with sqlite3 package
- User credits and transaction tracking
- API key management
- Admin endpoints for user management
- Stripe and PayPal webhook endpoints (ready for integration)
- Rate limiting and error handling
- CORS and security headers with helmet

Database tables:
- users (accounts, subscriptions, credits)
- sessions (auth tokens)
- api_keys (user API access)
- credit_transactions (credit history)
- payments (payment tracking)
2026-03-27 21:33:56 +00:00

25 lines
549 B
Plaintext

# Server Configuration
PORT=9991
NODE_ENV=development
# CORS
CORS_ORIGIN=*
# Stripe Configuration (for future use)
STRIPE_SECRET_KEY=sk_test_xxx
STRIPE_WEBHOOK_SECRET=whsec_xxx
STRIPE_PUBLISHABLE_KEY=pk_test_xxx
# PayPal Configuration (for future use)
PAYPAL_CLIENT_ID=xxx
PAYPAL_CLIENT_SECRET=xxx
PAYPAL_WEBHOOK_ID=xxx
PAYPAL_MODE=sandbox
# JWT Secret (optional, for enhanced token security)
JWT_SECRET=your-super-secret-key-change-in-production
# Admin User (created on first run if set)
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=changeme