Spaces:
Sleeping
Sleeping
File size: 849 Bytes
91d209c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
#!/bin/bash
# Quick run script for development
echo "🚀 Starting React Video Editor Python Backend..."
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "❌ Virtual environment not found. Run setup.sh first:"
echo " bash setup.sh"
exit 1
fi
# Activate virtual environment
source venv/bin/activate
# Check if .env.local exists
if [ ! -f ".env.local" ]; then
echo "⚠️ .env.local not found. Creating from template..."
cat > .env.local << EOF
SERVER_PORT=4000
PUBLIC_URL=http://localhost:4000
KIE_API_KEY=your_kie_api_key_here
VITE_GEMINI_API_KEY=your_gemini_api_key_here
EOF
echo "⚠️ Please edit .env.local and add your API keys"
exit 1
fi
# Run the server
echo "🌐 Server starting at http://localhost:4000"
echo "📚 API docs at http://localhost:4000/docs"
echo ""
python main.py
|