-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·74 lines (61 loc) · 1.95 KB
/
setup.sh
File metadata and controls
executable file
·74 lines (61 loc) · 1.95 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
#!/bin/bash
# Transcript Analyzer Setup Script
echo "🎓 Setting up Transcript Analyzer..."
echo "=================================="
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "❌ Node.js is not installed. Please install Node.js v16 or higher."
exit 1
fi
# Check Node.js version
NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)
if [ "$NODE_VERSION" -lt 16 ]; then
echo "❌ Node.js version 16 or higher is required. Current version: $(node -v)"
exit 1
fi
echo "✅ Node.js version: $(node -v)"
# Check if npm is installed
if ! command -v npm &> /dev/null; then
echo "❌ npm is not installed."
exit 1
fi
echo "✅ npm version: $(npm -v)"
# Install dependencies
echo "📦 Installing dependencies..."
npm install
if [ $? -ne 0 ]; then
echo "❌ Failed to install dependencies"
exit 1
fi
echo "✅ Dependencies installed successfully"
# Check if Expo CLI is installed
if ! command -v expo &> /dev/null; then
echo "📱 Installing Expo CLI..."
npm install -g @expo/cli
fi
echo "✅ Expo CLI is available"
# Check API key configuration
echo "🔑 Checking API key configuration..."
if grep -q "YOUR_GEMINI_API_KEY" src/config/env.ts; then
echo "⚠️ WARNING: Gemini API key not configured!"
echo ""
echo "To configure your API key:"
echo "1. Visit https://makersuite.google.com/app/apikey"
echo "2. Create a new API key"
echo "3. Open src/config/env.ts"
echo "4. Replace 'YOUR_GEMINI_API_KEY' with your actual key"
echo ""
echo "The app will not work without a valid API key."
else
echo "✅ API key appears to be configured"
fi
echo ""
echo "🎉 Setup complete!"
echo ""
echo "To start the app:"
echo " npm start # Start Expo development server"
echo " npm run ios # Run on iOS simulator"
echo " npm run android # Run on Android emulator"
echo " npm run web # Run in web browser"
echo ""
echo "For more information, see README.md"