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
This commit is contained in:
52
start_dev.cmd
Normal file
52
start_dev.cmd
Normal file
@ -0,0 +1,52 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user