A real-time stock portfolio dashboard built with Next.js 14 (App Router), TypeScript, Tailwind CSS, and React Table.
Fetches live market data (CMP, P/E, Earnings, etc) from your Node.js backend and updates every 15 seconds.
Live Demo: https://your-portfolio-tracker.vercel.app
| Feature | Status |
|---|---|
| Live Stock, Buy Price, Qty, Invested, CMP, Value, Gain/Loss, P/E, Exchange, Portfolio (%), Latest Earnings | ✅ |
| Auto-refresh every 15s | ✅ |
| Sector grouping with accordion | ✅ |
| Green/Red Gain/Loss | ✅ |
Performance optimized (React.memo, useMemo) |
✅ |
| Responsive (mobile + desktop) | ✅ |
| Clean, modern UI | ✅ |
| Layer | Technology |
|---|---|
| Frontend | Next.js 14 (App Router), TypeScript, Tailwind CSS |
| Table | react-table |
| Backend | Node.js + Express |
| Data | Yahoo Finance |
- Node.js ≥ 18
git clone https://github.com/krishna7054/Stack-Portfolio.git
cd Stack-Portfoliocd backendnpm installCreate .env.local in the backend/ folder:
PORT=4000
CACHE_TTL_SECONDS=15
USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64)npm run dev- Your backend API running at
http://localhost:4000
npm installCreate .env.local in the frontend/ folder:
NEXT_PUBLIC_API_URL=http://localhost:4000/apinpm run dev- Your frontend running at
http://localhost:3000