Files
you-music/dev-backend.sh
T
2025-10-30 14:45:41 +11:00

35 lines
686 B
Bash
Executable File

#!/bin/bash
# Start Backend Development Server
echo "🔧 Starting Backend Development Server..."
echo ""
cd backend
# Activate virtual environment
if [ ! -d ".venv" ]; then
echo "❌ Virtual environment not found. Run ./dev-setup.sh first"
exit 1
fi
source .venv/bin/activate
# Check if .env exists
if [ ! -f ".env" ]; then
echo "⚠️ Creating .env from .env.example..."
cp .env.example .env
fi
# Create data directories
mkdir -p ../data/music ../data/uploads ../data/temp
echo "✅ Backend starting on http://localhost:8000"
echo "📚 API Docs: http://localhost:8000/docs"
echo ""
echo "Press Ctrl+C to stop"
echo ""
# Run with auto-reload
python main.py