Command reference for building, running, and testing the DemoForge system.
# Clone and enter project
cd DemoForge
# Initialize environment
cp .env.example .env
# Required: Set OPENAI_API_KEY in .env if using LLM plannercd frontend
# Install dependencies (requires Node 18+)
npm install# Start backend (API + Redis + Worker)
docker compose up -d
# Start frontend (Dev mode)
cd frontend
npm run dev# View backend logs
docker compose logs -f
# Scale workers for faster processing
docker compose up -d --scale worker=3
# Stop all backend services
docker compose down -vUse these commands to verify the backend independent of the UI.
curl http://localhost:8000/healthcurl -X POST http://localhost:8000/demo/run \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'Take note of the job_id in the response.
# Replace {job_id} with your actual ID
curl http://localhost:8000/demo/status/{job_id}curl http://localhost:8000/demo/export/{job_id} -o demo.mp4curl -X DELETE http://localhost:8000/demo/cleanup/{job_id}If videos are not generating:
# Check worker logs for Playwright/FFmpeg errors
docker compose logs -f worker# Enter Redis CLI inside the container
docker compose exec redis redis-cli
# Check queue length
LLEN demo:queue
# List all job keys
KEYS job:*# Run build to check for production issues
cd frontend
npm run build- Start Backend:
docker compose up -d - Start Frontend:
npm run dev(infrontend/) - Open:
http://localhost:3000 - Monitor:
docker compose logs -f worker