sushilideaclan01's picture
first push
91d209c
raw
history blame contribute delete
849 Bytes
#!/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