Spaces:
Sleeping
Sleeping
| # 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 | |