# MLazy Engine — AI Video Creation & Publishing Studio
**MLazy Engine** is an automated AI video creation, editing, style cloning, and publishing backend platform.
---
## 🚀 How to Run the Server & Tests
### 1. How to Start the MLazy Backend Server
Open your terminal and run:
```bash
PYTHONPATH=. uvicorn mlazy_engine.api:app --reload --port 8000
http://localhost:8000http://localhost:8000/docs in your browser for the Interactive Swagger API Documentation!In your terminal, run:
PYTHONPATH=. pytest mlazy_engine/tests/ -v
While your server is running on port 8000, open a second terminal tab and run:
PYTHONPATH=. python3 mlazy_engine/tests/test_live_demo.py
This tests all 5 REST API endpoints live against the running server!
mlazy_engine/config.py: Environment & database configuration.mlazy_engine/db.py: Async SQLAlchemy connection pool for Supabase PostgreSQL & SQLite fallback.mlazy_engine/models.py: SQLAlchemy 2.0 ORM schemas (Users, Stories, VideoJobs, YouTubeUploads, StyleProfiles).mlazy_engine/script_engine.py: LLM YouTube script & Google Veo scene prompt generator.mlazy_engine/merger.py: Zero-loss FFmpeg video clip merger.mlazy_engine/youtube_publisher.py: YouTube Data API v3 video publisher.mlazy_engine/style_clone.py: Channel visual style profiler engine.mlazy_engine/auth.py: Google OAuth & JWT token security.mlazy_engine/api.py: FastAPI REST API endpoints.mlazy_engine/payments.py: Stripe entitlement webhook processor.