Files
btc-trading/start_dev.cmd
DiTus c7ee5135ae Initial commit - BTC Trading Dashboard
- FastAPI backend with PostgreSQL database connection
- Frontend dashboard with lightweight-charts
- Technical indicators (SMA, EMA, RSI, MACD, Bollinger Bands, etc.)
- Trading strategy simulation and backtesting
- Database connection to NAS at 20.20.20.20:5433
- Development server setup and documentation
2026-02-25 22:10:30 +01:00

52 lines
1.3 KiB
Batchfile

@echo off
echo ===================================
echo BTC Trading Dashboard - Development Server
echo ===================================
echo.
REM Check if venv exists
if not exist "venv\Scripts\activate.bat" (
echo [ERROR] Virtual environment not found!
echo Please run setup first to create the venv.
echo.
pause
exit /b 1
)
REM Activate venv
call venv\Scripts\activate.bat
REM Check dependencies
echo [1/3] Checking dependencies...
pip show fastapi >nul 2>&1
if %errorlevel% neq 0 (
echo Installing dependencies...
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo [ERROR] Failed to install dependencies
pause
exit /b 1
)
)
echo [2/3] Testing database connection...
python test_db.py
if %errorlevel% neq 0 (
echo [WARNING] Database connection test failed
echo Press Ctrl+C to cancel or any key to continue...
pause >nul
)
echo [3/3] Starting development server...
echo.
echo ===================================
echo Server will start at:
echo - API Docs: http://localhost:8000/docs
echo - Dashboard: http://localhost:8000/dashboard
echo - Health: http://localhost:8000/api/v1/health
echo ===================================
echo.
echo Press Ctrl+C to stop the server
echo.
uvicorn src.api.server:app --reload --host 0.0.0.0 --port 8000