Stockwise is a React + Vite stock dashboard with a lightweight FastAPI backend powered by Yahoo Finance.
src/— frontend appapi/index.py— FastAPI backendrequirements.txt— Python backend dependencies
Run the backend:
cd /Users/florah/Desktop/stockwise
npm run dev:apiRun the frontend in a second terminal:
cd /Users/florah/Desktop/stockwise
npm run devThe Vite dev server proxies /api/* to http://127.0.0.1:8000.
Recommended setup:
- Frontend on Vercel
- Backend on Railway
Set this environment variable on Vercel:
VITE_API_BASE=https://your-backend-domain.example.comBuild command:
npm run buildDeploy the repo as a Python service using:
uvicorn api.index:app --host 0.0.0.0 --port $PORTInstall command:
pip install -r requirements.txt- Yahoo Finance is free but can still be slower than paid feeds.
- The UI is designed to render immediately and hydrate data asynchronously.
- AI analysis currently uses a local fallback summary in the frontend.