Files
web-adventure/start.sh
T
2026-05-29 11:11:44 +02:00

26 lines
589 B
Bash
Executable File

#!/bin/bash
# Web Adventure - Startup Script
echo "🎮 Web Adventure - Community RPG"
echo "=================================="
echo ""
echo "Starting backend server..."
# Check if pip packages are installed
if ! python -c "import fastapi" 2>/dev/null; then
echo "Installing dependencies..."
pip install -r requirements.txt
fi
# Start the server
echo ""
echo "Backend running at: http://localhost:8000"
echo "Game frontend at: file://$(pwd)/index.html"
echo ""
echo "Press Ctrl+C to stop the server"
echo ""
python -m uvicorn backend:app --reload --host 0.0.0.0 --port 8000