WellNuo/backend/.env.example
Sergei e1b32560ff Add Node.js backend with Stripe integration and admin panel
Backend features:
- Express.js API server
- Supabase database integration
- Stripe Checkout for payments ($249 kit + $9.99/mo premium)
- Stripe webhooks for payment events
- Admin panel with order management
- Auth middleware with JWT
- Email service via Brevo

API endpoints:
- /api/stripe/* - Payment processing
- /api/webhook/stripe - Stripe webhooks
- /api/admin/* - Admin operations
- /function/well-api/api - Legacy API proxy

Database migrations:
- orders, subscriptions, push_tokens tables

Schemes updated:
- Removed updatedAt from all schemes
- Updated credentials section with live values
- Added Stripe configuration details

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-19 09:49:24 -08:00

35 lines
736 B
Plaintext

# Supabase
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_KEY=your-service-key
SUPABASE_DB_PASSWORD=your-db-password
# JWT
JWT_SECRET=your-jwt-secret
JWT_EXPIRES_IN=7d
# Server
PORT=3010
NODE_ENV=production
# Brevo Email
BREVO_API_KEY=your-brevo-key
BREVO_SENDER_EMAIL=noreply@wellnuo.com
BREVO_SENDER_NAME=WellNuo
# Frontend URL (for password reset links)
FRONTEND_URL=https://wellnuo.smartlaunchhub.com
# Stripe
STRIPE_PUBLISHABLE_KEY=pk_test_xxx
STRIPE_SECRET_KEY=sk_test_xxx
STRIPE_WEBHOOK_SECRET=whsec_xxx
# Stripe Products & Prices
STRIPE_PRICE_STARTER_KIT=price_xxx
STRIPE_PRICE_PREMIUM=price_xxx
STRIPE_PRODUCT_STARTER_KIT=prod_xxx
STRIPE_PRODUCT_PREMIUM=prod_xxx
# Admin
ADMIN_API_KEY=your-admin-api-key