.env.example to .env and configure the following variables:
Database Configuration
PostgreSQL connection string with connection pooling enabled. Used by Prisma for database queries through PgBouncer.
Direct PostgreSQL connection string without pooling. Required for Prisma migrations and schema operations.
Authentication
Supabase
Your Supabase project URL. Find this in your Supabase project settings under API.
Supabase anonymous/public API key. Safe to expose in client-side code.
Discord OAuth
Discord OAuth application client ID. Create an application at https://discord.com/developers/applications
Discord OAuth application client secret.
OAuth callback URL for Discord authentication. Must match the redirect URI configured in your Discord application.For production, update to your production domain:
Security
Encryption key for sensitive data. Generate a secure random string (minimum 32 characters).
Third-Party Services
OpenAI
OpenAI API key for AI-powered features (trade analysis, chat support, etc.).
Stripe
Stripe publishable key. Safe to expose in client-side code.
Stripe secret key for server-side operations.
Stripe webhook signing secret for verifying webhook events. Obtain this when creating a webhook endpoint in your Stripe dashboard.See Subscriptions Configuration for webhook setup instructions.
Email Service
Resend API key for transactional emails (welcome emails, notifications, etc.).
Email address displayed to users for support inquiries.
Internal email address where support requests are sent.
GitHub
GitHub personal access token for repository access (used for feature voting and issue tracking).
Public Configuration
Discord community invitation link displayed in the application.
GitHub repository owner/username for feature requests and bug reports.
GitHub repository name for feature requests and bug reports.
Tutorial Videos
URL for Rithmic performance tutorial video.
URL for Rithmic order tutorial video.
URL for NinjaTrader performance tutorial video.
Environment Setup
-
Copy the example file:
- Configure required variables: Start with database, authentication, and security variables before running the application.
-
Validate configuration:
The application will fail to start if required variables are missing.
Next Steps
- Database Configuration - Set up PostgreSQL and run migrations
- Authentication Setup - Configure Supabase Auth and Discord OAuth
- Subscription Configuration - Set up Stripe integration and webhooks