forked from magnaopus1/Synthron-Crypto-Trader
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_web.py
More file actions
28 lines (23 loc) · 745 Bytes
/
run_web.py
File metadata and controls
28 lines (23 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python3
"""
SupertradeX Web Dashboard Runner
Starts the FastAPI web server on port 8000
"""
import sys
import os
# Add project root to path
project_root = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, project_root)
from web.app import run_server
if __name__ == "__main__":
print("🚀 Starting SupertradeX Dashboard...")
print("📊 Dashboard URL: http://127.0.0.1:8000")
print("🔧 Environment: Development")
print("⚠️ Press CTRL+C to stop")
try:
run_server(host="127.0.0.1", port=8000)
except KeyboardInterrupt:
print("\n👋 SupertradeX Dashboard stopped")
except Exception as e:
print(f"❌ Error starting dashboard: {e}")
sys.exit(1)