- Google Cloud Project with billing enabled
- gcloud CLI installed and authenticated
- Node.js 16+ and Python 3.11+
git clone https://github.com/truthlens/truthlens.git
cd truthlens
chmod +x scripts/*.sh# Set your GCP project ID
export PROJECT_ID="your-project-id"
# Update project ID in deployment script
sed -i "s/truthlens-project/$PROJECT_ID/g" scripts/deploy.sh# This will create all infrastructure and deploy the app
./scripts/deploy.sh- Vertex AI API Key: Get from Google Cloud Console
- Fact Check API Key: Get from Google Fact Check Tools
- Update Secrets:
echo "your-vertex-ai-key" | gcloud secrets versions add truthlens-api-key --data-file=-
echo "your-fact-check-key" | gcloud secrets versions add fact-check-api-key --data-file=-# Get your API Gateway URL from deployment output
API_URL="https://your-gateway-url"
# Test verification
curl -H "Authorization: Bearer your-api-key" \
-F "text=The Earth is round" \
-F "mode=fast" \
-F "language=en" \
"$API_URL/v1/verify"- Cloud Run: Serverless API backend
- API Gateway: Managed API with security
- BigQuery: Analytics and logging
- Cloud Storage: Evidence storage
- Monitoring: Dashboards and alerts
- PWA: Progressive Web App with share functionality
- API: RESTful API with AI integration
- Monitoring: Real-time metrics and alerting
- Security: API keys, IAM, encryption
- Scalability: Auto-scaling, cost optimization
- Monitoring: Comprehensive observability
- Documentation: Complete documentation
# API Configuration
export GOOGLE_CLOUD_PROJECT="your-project"
export REGION="us-central1"
export BUCKET_NAME="your-bucket"GET /healthz- Health checkPOST /v1/verify- Fact verification
- Share target integration
- Offline support
- Multi-language support
- Real-time metrics
- Development: ~$50/month
- Production: ~$200/month for 50k queries
- Scaling: Pay-per-use model
- API Key Errors: Check Secret Manager configuration
- Permission Errors: Verify IAM roles
- Deployment Failures: Check Cloud Build logs
- API Timeouts: Increase Cloud Run timeout
# Check deployment status
gcloud run services list
# View logs
gcloud logs read --service=truthlens-api
# Check API Gateway
gcloud api-gateway gateways list- Customize: Update branding and configuration
- Scale: Configure auto-scaling parameters
- Monitor: Set up custom alerts
- Extend: Add new features and integrations
You now have a complete AI-powered fact verification platform running on Google Cloud!
API URL: https://your-gateway-url
PWA URL: https://your-pwa-url
Monitoring: Google Cloud Console → Monitoring