ln / backend /start.sh
MoShow's picture
Upload 252 files
78d0e31 verified
#!/bin/bash
echo "πŸ”₯ FLAMEBORN TESTNET INITIALIZATION πŸ”₯"
echo "Ubuntu Principle: I am because we are"
echo "========================================="
# Check if Python is installed
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed"
exit 1
fi
# Check if pip is installed
if ! command -v pip &> /dev/null; then
echo "❌ pip is not installed"
exit 1
fi
echo "πŸ“¦ Installing dependencies..."
pip install -r requirements.txt
echo "πŸ—„οΈ Initializing database..."
python3 -c "
from main import Base, engine
Base.metadata.create_all(bind=engine)
print('βœ… Database initialized')
"
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 ""
uvicorn main:app --host 0.0.0.0 --port 8000 --reload