-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.template
More file actions
172 lines (134 loc) · 5.04 KB
/
Copy pathenv.template
File metadata and controls
172 lines (134 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Khronos API Environment Variables Template
# Copy this file to .env and fill in your actual API keys
# Database
MONGODB_URI=mongodb://localhost:27017/khronos
# JWT
JWT_SECRET=your-jwt-secret-key
# OAuth State Secret (for CSRF protection in OAuth flows)
STATE_SECRET=your-oauth-state-secret-key
# Encryption key for storing platform tokens (base64-encoded 32 bytes)
ENCRYPTION_KEY_BASE64=your-base64-32-byte-key
# Server
PORT=3000
NODE_ENV=development
# Frontend URL for CORS
FRONTEND_URL=http://localhost:3000
# API Base URL (for OAuth callbacks)
API_URL=http://localhost:3000
# ===== GOOGLE OAUTH CONFIGURATION =====
# Get from: https://console.developers.google.com/
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_CALLBACK_URL=http://localhost:3000/api/v1/auth/google/callback
# Redis Cache Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=your-redis-password
# LLM Services
OPENAI_API_KEY=your-openai-api-key
GEMINI_API_KEY=your-gemini-api-key
ANTHROPIC_API_KEY=your-anthropic-api-key
# ===== SOCIAL MEDIA APIs FOR REAL-TIME ANALYTICS =====
# Instagram Business API
# Get from: https://developers.facebook.com/docs/instagram-api
INSTAGRAM_ACCESS_TOKEN=your-instagram-access-token
INSTAGRAM_BUSINESS_ACCOUNT_ID=your-instagram-business-account-id
INSTAGRAM_APP_ID=your-instagram-app-id
INSTAGRAM_APP_SECRET=your-instagram-app-secret
# YouTube Data API v3
# Get from: https://console.developers.google.com/
YOUTUBE_API_KEY=your-youtube-api-key
YOUTUBE_CHANNEL_ID=your-youtube-channel-id
YOUTUBE_ACCESS_TOKEN=your-youtube-access-token
YOUTUBE_REFRESH_TOKEN=your-youtube-refresh-token
# TikTok for Business API
# Get from: https://developers.tiktok.com/
TIKTOK_ACCESS_TOKEN=your-tiktok-access-token
TIKTOK_OPEN_ID=your-tiktok-open-id
TIKTOK_APP_ID=your-tiktok-app-id
# LinkedIn Marketing API
# Get from: https://developer.linkedin.com/
LINKEDIN_ACCESS_TOKEN=your-linkedin-access-token
LINKEDIN_PERSON_ID=your-linkedin-person-id
LINKEDIN_ORGANIZATION_ID=your-linkedin-organization-id
# Twitter API v2
# Get from: https://developer.twitter.com/
TWITTER_BEARER_TOKEN=your-twitter-bearer-token
TWITTER_API_KEY=your-twitter-api-key
TWITTER_API_SECRET=your-twitter-api-secret
TWITTER_ACCESS_TOKEN=your-twitter-access-token
TWITTER_ACCESS_TOKEN_SECRET=your-twitter-access-token-secret
# Facebook Graph API
# Get from: https://developers.facebook.com/
FACEBOOK_ACCESS_TOKEN=your-facebook-access-token
FACEBOOK_PAGE_ID=your-facebook-page-id
FACEBOOK_APP_ID=your-facebook-app-id
FACEBOOK_APP_SECRET=your-facebook-app-secret
# ===== EXTERNAL TRENDS & ANALYTICS APIs =====
# Google Trends API
# Get from: https://console.developers.google.com/
GOOGLE_TRENDS_API_KEY=your-google-trends-api-key
# BuzzSumo API
# Get from: https://app.buzzsumo.com/research/api
BUZZSUMO_API_KEY=your-buzzsumo-api-key
# Mention.com API
# Get from: https://mention.com/en/api/
MENTION_API_KEY=your-mention-api-key
# Brand24 API
# Get from: https://brand24.com/api/
BRAND24_API_KEY=your-brand24-api-key
# SEMrush API
# Get from: https://www.semrush.com/api-documentation/
SEMRUSH_API_KEY=your-semrush-api-key
# ===== NOTIFICATION SERVICES =====
# Email Service (for alerts)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-email-password
# Push Notifications
FIREBASE_SERVER_KEY=your-firebase-server-key
FIREBASE_PROJECT_ID=your-firebase-project-id
# ===== API SETUP INSTRUCTIONS =====
# 1. INSTAGRAM BUSINESS API:
# - Create Facebook App at https://developers.facebook.com/
# - Add Instagram Basic Display product
# - Get access token with instagram_basic scope
# - Convert personal account to business account
# 2. YOUTUBE DATA API:
# - Go to Google Cloud Console
# - Enable YouTube Data API v3
# - Create credentials (API key and OAuth 2.0)
# - Get channel ID from your YouTube channel
# 3. TWITTER API:
# - Apply for developer account at https://developer.twitter.com/
# - Create new app and get API keys
# - Apply for elevated access for v2 endpoints
# 4. TIKTOK FOR BUSINESS:
# - Apply at https://developers.tiktok.com/
# - Create app and get API credentials
# - Note: Requires business verification
# 5. LINKEDIN MARKETING API:
# - Create LinkedIn app at https://developer.linkedin.com/
# - Request marketing API access
# - Get OAuth 2.0 credentials
# 6. FACEBOOK GRAPH API:
# - Same as Instagram - use Facebook for Developers
# - Add Facebook Login and Pages API products
# 7. EXTERNAL ANALYTICS APIs:
# - BuzzSumo: Sign up for paid plan at buzzsumo.com
# - Mention: Sign up at mention.com
# - Brand24: Sign up at brand24.com
# - SEMrush: Sign up for API access at semrush.com
# ===== RATE LIMITS & COSTS =====
# Free Tiers Available:
# - YouTube Data API: 10,000 units/day
# - Twitter API: 300 requests/15min (basic)
# - Google Trends: Limited requests
# - Facebook/Instagram: Varies by app review status
# Paid Services:
# - BuzzSumo: $99+/month
# - Mention: $29+/month
# - Brand24: $79+/month
# - SEMrush: $119+/month
# Note: Start with free tiers and upgrade based on usage needs