A premium, responsive personal portfolio tracker for Indian stocks and SIP mutual funds. It uses a transaction-first model: each purchase has a date, units, and price/NAV, allowing the dashboard to distinguish capital invested, current value, and profit over time.
- Install dependencies:
npm install - Copy
.env.exampleto.env.localand fill in the values. - In Supabase, run
supabase/schema.sqlin the SQL editor. - In Supabase Authentication, enable Google and X (Twitter) providers. Add your local and production URLs as redirect URLs.
- Start:
npm run dev
Without Supabase configuration the app opens a clearly labelled preview flow using sample data. It does not pretend that this preview has authentication or persistence.
- Register Google OAuth and X OAuth credentials for the exact production domain, then enter them in Supabase Auth provider settings.
- Add the production callback URL shown by Supabase to each OAuth provider.
- Set
VITE_SUPABASE_URL,VITE_SUPABASE_ANON_KEY, andVITE_TWELVE_DATA_API_KEYin the hosting provider’s environment settings. - Deploy the built
dist/directory to any static host (Vercel, Netlify, Cloudflare Pages, etc.). Ensure SPA rewrites route unknown paths toindex.htmlif your host requires it.
The Refresh live prices action requests NSE quote symbols from Twelve Data and persists a portfolio-history point after a successful refresh. Market-data coverage depends on the selected vendor plan; errors remain visible with a retry control. Mutual fund NAVs are intentionally labelled as delayed/manual until an AMFI-compatible NAV adapter is configured.
For a broker-grade production feed, replace the simple request in src/main.jsx with a server-side provider proxy; this prevents exposing a market-data key to the browser and lets you normalize exchange symbols, fund scheme codes, and rate limits. The database schema now includes a transactions audit table for buys, sells, dividends, and SIP instalments.