-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-env-template.sh
More file actions
executable file
Β·45 lines (37 loc) Β· 1.69 KB
/
Copy pathsetup-env-template.sh
File metadata and controls
executable file
Β·45 lines (37 loc) Β· 1.69 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
#!/bin/bash
# GardenGuardian AI - Environment Setup Template
# This script creates a template .env.local file
# NO ACTUAL API KEYS SHOULD BE IN THIS FILE
echo "π Setting up GardenGuardian AI Environment Variables"
echo "=================================================="
# Create .env.local file with placeholders
cat > .env.local << 'EOF'
# GardenGuardian AI - Environment Variables
# Fill in your actual API keys below
# Gemini AI (Required for intelligent plant health analysis)
NEXT_PUBLIC_GEMINI_API_KEY=your_gemini_api_key_here
# SendGrid (Required for email notifications)
SENDGRID_API_KEY=your_sendgrid_api_key_here
# Firebase Configuration (Required for persistence, auth, community)
NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_key_here
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id_here
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_sender_id_here
NEXT_PUBLIC_FIREBASE_APP_ID=your_app_id_here
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=your_measurement_id_here
# Weather (Required for spray recommendations)
NEXT_PUBLIC_OPENWEATHER_API_KEY=your_openweather_api_key_here
EOF
echo "β
Created .env.local template file"
echo "π Please edit .env.local and add your actual API keys"
echo "π The .env.local file is already in .gitignore and will not be committed"
echo ""
echo "β οΈ IMPORTANT SECURITY STEPS:"
echo "1. Regenerate your compromised API keys immediately"
echo "2. Update the keys in .env.local"
echo "3. Never commit .env.local to git"
echo ""
echo "π Next steps:"
echo "1. Edit .env.local with your actual keys"
echo "2. Test your application with the new keys"