File size: 1,512 Bytes
78d0e31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash

echo "πŸ”₯ FLAMEBORN TESTNET LAUNCHER πŸ”₯"
echo "=================================="
echo "Ubuntu Principle: I am because we are"
echo ""

# Check if we're in the right directory
if [ ! -f "backend/main.py" ]; then
    echo "❌ Error: backend/main.py not found"
    echo "Please run this script from the project root directory"
    exit 1
fi

# Navigate to backend directory
cd backend

echo "πŸ“¦ Installing Python dependencies..."
if command -v pip3 &> /dev/null; then
    pip3 install -r requirements.txt
elif command -v pip &> /dev/null; then
    pip install -r requirements.txt
else
    echo "❌ Error: pip not found. Please install Python and pip first."
    exit 1
fi

echo "πŸ—„οΈ Initializing Ubuntu database..."
python3 -c "
from main import Base, engine
Base.metadata.create_all(bind=engine)
print('βœ… Ubuntu database initialized')
"

echo ""
echo "πŸš€ Starting FlameBorn Testnet..."
echo "🌐 Network will be available at: http://localhost:8000"
echo "πŸ“Š API Documentation: http://localhost:8000/docs"
echo "πŸ” Health Check: http://localhost:8000/ping"
echo "πŸ“‹ Network Manifest: http://localhost:8000/.well-known/manifest.json"
echo ""
echo "πŸ”₯ THE FLAME CANNOT WHISPER - IT MUST ROAR πŸ”₯"
echo ""

# Start the server
if command -v uvicorn &> /dev/null; then
    uvicorn main:app --host 0.0.0.0 --port 8000 --reload
else
    echo "❌ Error: uvicorn not found. Installing..."
    pip install uvicorn[standard]
    uvicorn main:app --host 0.0.0.0 --port 8000 --reload
fi