|
#!/bin/bash |
|
|
|
echo "π₯ FLAMEBORN TESTNET LAUNCHER π₯" |
|
echo "==================================" |
|
echo "Ubuntu Principle: I am because we are" |
|
echo "" |
|
|
|
|
|
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 |
|
|
|
|
|
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 "" |
|
|
|
|
|
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 |
|
|