stock/start_dashboard.py
ZhangPeng 9aecdd036c Initial commit: OpenClaw Trading - AI多智能体量化交易系统
- 添加项目核心代码和配置
- 添加前端界面 (Next.js)
- 添加单元测试
- 更新 .gitignore 排除缓存和依赖
2026-02-27 03:47:40 +08:00

27 lines
675 B
Python

#!/usr/bin/env python
"""Standard entry point for the OpenClaw Dashboard."""
import sys
import os
from pathlib import Path
# Add src to python path
sys.path.insert(0, str(Path(__file__).parent / "src"))
import uvicorn
from openclaw.dashboard.app import create_app
def main():
"""Start the dashboard server."""
port = 8000
print("🚀 Initializing OpenClaw Dashboard...")
print(f"📡 Backend API: http://127.0.0.1:{port}")
print(f"🌐 Frontend expected at: http://localhost:3000")
app = create_app()
# Use 0.0.0.0 for better compatibility on Mac
uvicorn.run(app, host="0.0.0.0", port=port)
if __name__ == "__main__":
main()