-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-dev.sh
More file actions
executable file
·70 lines (60 loc) · 1.9 KB
/
setup-dev.sh
File metadata and controls
executable file
·70 lines (60 loc) · 1.9 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
#!/bin/bash
# Development Setup Script for Sentinel Dispatch
# This script helps set up the development environment
# Now uses Makefile commands for consistency
set -e
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR" && pwd)"
# Change to project root
cd "$PROJECT_ROOT"
echo "🚀 Setting up Sentinel Dispatch development environment..."
echo ""
# Check if Makefile exists
if [ ! -f "Makefile" ]; then
echo "❌ Makefile not found. Please run this script from the project root."
exit 1
fi
# Use Makefile commands for setup
echo "📋 Checking prerequisites..."
if ! make check-prereqs; then
echo ""
echo "❌ Prerequisites check failed. Please install missing dependencies."
exit 1
fi
echo ""
echo "📦 Installing dependencies..."
make install
echo ""
echo "🐳 Starting development containers..."
make up-no-build
echo ""
echo "✅ Development environment setup complete!"
echo ""
echo "📝 Next steps:"
echo " 1. Create a .env file in the project root with:"
echo " GEMINI_API_KEY=your-key-here"
echo " GOOGLE_MAPS_API_KEY=your-key-here"
echo " NEXT_PUBLIC_API_URL=http://localhost:8000"
echo " NEXT_PUBLIC_WS_URL=ws://localhost:8000/ws"
echo " NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=\"\${GOOGLE_MAPS_API_KEY}\""
echo " FIRMS_API_KEY=your-key-here # Optional"
echo ""
echo " 2. Source the .env file:"
echo " source .env"
echo ""
echo " 3. Build Flink agents:"
echo " make flink-build"
echo ""
echo " 4. Submit Flink agents:"
echo " make flink-submit AGENT=CallProcessingAgent"
echo ""
echo " 5. Start frontend:"
echo " make frontend-dev"
echo ""
echo "📚 Useful commands:"
echo " - Check status: make status"
echo " - View logs: make logs"
echo " - See all commands: make help"
echo ""
echo "📚 See documentation/DEVELOPMENT_MODE.md for more details"