feat: init commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user