.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.example)
PORT
Copy this file to .env if you want to run with live Google services. Never commit real keys. Restrict all browser-exposed keys by HTTP…
NODE_ENV
GEMINI_API_KEY
secret
Optional: server-side Gemini API integration.
GEMINI_MODEL
GOOGLE_CIVIC_API_KEY
secret
Optional: Google Civic Information API. Mainly supports US election lookup.
GOOGLE_SHEETS_API_KEY
secret
Optional: Google Sheets source/translation configuration.
GOOGLE_SHEETS_ID
GOOGLE_SHEETS_RANGE
GOOGLE_DRIVE_API_KEY
secret
Optional: Google Drive folder of official source snapshots.
GOOGLE_DRIVE_FOLDER_ID
GOOGLE_ANALYTICS_ID
Optional: privacy-conscious GA4 telemetry. Use a G-XXXXXXXXXX measurement ID.
PUBLIC_GOOGLE_MAPS_API_KEY
secret
Optional: public, referrer-restricted browser key for Maps/Places demos.
SENTRY_DSN
Optional: structured error tracking flag/documentation hook.
ALLOWED_ORIGIN
Optional: CORS origin for deployments, e.g. https://your-domain.example
GOOGLE_CLOUD_PROJECT
Optional: Google Cloud production deployment and aggregate analytics.
GOOGLE_CLOUD_ACCESS_TOKEN
secret
BIGQUERY_DATASET
BIGQUERY_TABLE
ADMIN_EXPORT_TOKEN
secret
GOOGLE_CLOUD_FUNCTION_URL
brew install flyctl && fly launch --from https://github.com/ayushap18/election-bot
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/ayushap18/election-bot
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/ayushap18/election-bot