|
#!/bin/bash |
|
|
|
echo "π₯ FLAMEBORN TESTNET INITIALIZATION π₯" |
|
echo "Ubuntu Principle: I am because we are" |
|
echo "=========================================" |
|
|
|
|
|
if ! command -v python3 &> /dev/null; then |
|
echo "β Python 3 is not installed" |
|
exit 1 |
|
fi |
|
|
|
|
|
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 |
|
|