generated from nhcarrigan/template
3c8a46e5a6
- Add Python backend structure with FastAPI for transcription/summarization - Add React UI with audio recording, transcript, and summary views - Configure Tauri to manage Python backend lifecycle - Set up Windows cross-compilation with cargo-xwin - Add Gitea CI workflow for lint, test, and multi-platform builds - Configure ESLint, Prettier, and Vitest for code quality Note: App scaffolding only - Python env and models not yet set up
24 lines
525 B
Python
24 lines
525 B
Python
"""Start the Chronara backend server."""
|
|
|
|
import os
|
|
import sys
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
# Add src directory to Python path
|
|
src_path = Path(__file__).parent.parent / "src"
|
|
sys.path.insert(0, str(src_path))
|
|
|
|
# Set environment for bundled deployment
|
|
os.environ["CHRONARA_BUNDLED"] = "1"
|
|
|
|
# Start the FastAPI server
|
|
subprocess.run([
|
|
sys.executable,
|
|
"-m",
|
|
"uvicorn",
|
|
"backend.main:app",
|
|
"--host", "127.0.0.1",
|
|
"--port", "8000",
|
|
"--reload" if os.environ.get("CHRONARA_DEV") else ""
|
|
]) |