TCPDashboard/main.py

47 lines
1.4 KiB
Python
Raw Normal View History

2025-05-29 23:50:41 +08:00
#!/usr/bin/env python3
"""
Main entry point for the Crypto Trading Bot Dashboard.
"""
import sys
from pathlib import Path
# Add project root to path
project_root = Path(__file__).parent
sys.path.insert(0, str(project_root))
2025-05-29 23:04:08 +08:00
def main():
2025-05-29 23:50:41 +08:00
"""Main application entry point."""
print("🚀 Crypto Trading Bot Dashboard")
print("=" * 40)
try:
from config.settings import app, dashboard
print(f"Environment: {app.environment}")
print(f"Debug mode: {app.debug}")
if app.environment == "development":
print("\n🔧 Running in development mode")
print("To start the full application:")
print("1. Run: python scripts/dev.py setup")
print("2. Run: python scripts/dev.py start")
print("3. Update .env with your OKX API credentials")
print("4. Run: uv run python tests/test_setup.py")
# TODO: Start the Dash application when ready
# from app import create_app
# app = create_app()
# app.run(host=dashboard.host, port=dashboard.port, debug=dashboard.debug)
print(f"\n📝 Next: Implement Phase 1.0 - Database Infrastructure Setup")
except ImportError as e:
print(f"❌ Failed to import modules: {e}")
print("Run: uv sync")
sys.exit(1)
2025-05-29 23:04:08 +08:00
if __name__ == "__main__":
main()