-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
55 lines (45 loc) Β· 1.4 KB
/
setup.sh
File metadata and controls
55 lines (45 loc) Β· 1.4 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
#!/bin/bash
# NBA Integrity Guard - Setup Script
# Initializes the project and prepares for deployment
set -e
echo "π NBA Integrity Guard - Setup Script"
echo "======================================"
echo ""
# Check prerequisites
echo "π Checking prerequisites..."
if ! command -v docker &> /dev/null; then
echo "β Docker is not installed. Please install Docker first."
exit 1
fi
if ! command -v docker-compose &> /dev/null; then
echo "β Docker Compose is not installed. Please install Docker Compose first."
exit 1
fi
echo "β Docker and Docker Compose are installed"
echo ""
# Create .env file if it doesn't exist
if [ ! -f .env ]; then
echo "π Creating .env file from template..."
cp .env.example .env
echo "β .env file created. Please edit it with your API keys."
echo ""
echo "Required API keys:"
echo " - TWITTER_BEARER_TOKEN (from https://developer.twitter.com)"
echo " - POLYGON_RPC_URL (from https://www.alchemy.com)"
echo " - PRIVATE_KEY (your wallet private key)"
echo ""
else
echo "β .env file already exists"
fi
# Build Docker images
echo "π¨ Building Docker images..."
docker-compose build
echo ""
echo "β
Setup complete!"
echo ""
echo "Next steps:"
echo "1. Edit .env file with your API keys"
echo "2. Run: docker-compose up -d"
echo "3. Check status: docker-compose ps"
echo "4. View logs: docker-compose logs -f"
echo ""