Skip to content

Commit 8a5c21d

Browse files
committed
feat: Complete frontend-backend integration with JWT authentication
- Integrated React frontend with FastAPI backend - Implemented JWT token-based authentication - Created all dashboard pages (Trading, Portfolio, Backtest, etc.) - Fixed API client with proper error handling - Added environment variable configuration - Connected all routes and endpoints - Added comprehensive documentation Frontend: - Modern React + TypeScript UI with Vite - All pages working: Dashboard, Trading, Portfolio, Backtest, Cash, Watchlists, Alerts - Protected routes with auto-redirect - JWT token management in localStorage - Proper error handling and user feedback Backend: - FastAPI with async SQLAlchemy - JWT authentication system - All API endpoints functional - CORS properly configured - Database models and schemas updated Test user: demo@quantresearch.com / Demo123456
1 parent 42481f4 commit 8a5c21d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+6784
-6424
lines changed

.env.example

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Backend API Configuration
2+
DATABASE_URL=postgresql+asyncpg://postgres:password@localhost:5432/qrs
3+
REDIS_URL=redis://localhost:6379/0
4+
5+
# Security
6+
SECRET_KEY=your-secret-key-change-this-in-production
7+
ALGORITHM=HS256
8+
ACCESS_TOKEN_EXPIRE_MINUTES=30
9+
10+
# CORS
11+
CORS_ORIGINS=http://localhost:5173,http://localhost:3000,http://localhost:8080
12+
13+
# Finnhub API (optional - will use mock data if not provided)
14+
FINNHUB_API_KEY=
15+
16+
# Output directory for backtest results
17+
OUTPUT_DIR=./output
18+
19+
# Server
20+
HOST=0.0.0.0
21+
PORT=8000

0 commit comments

Comments
 (0)