Demo Video – Check Here
App Link – Check Here
A comprehensive stock trading application built with React, TypeScript, and Supabase. Features real-time stock data, portfolio management, 3D visualizations, and a complete trading system.
- Complete user authentication with Supabase
- Login, signup, password reset functionality
- Email confirmation flow
- Profile setup with investment preferences
- Real-time portfolio tracking
- Net worth history with interactive charts
- V-Cash balance management (virtual trading currency)
- Portfolio holdings with profit/loss calculations
- Real-time stock quotes from Finnhub API
- Buy/sell functionality with virtual currency
- Transaction history tracking
- Watchlist management
- Dual-mode charts (2D Chart.js and 3D Three.js)
- Interactive price charts with technical indicators
- Real-time data updates
- Professional trading interface
- Beautiful glassmorphism design
- 3D animations and micro-interactions
- Responsive design for all devices
- Dark theme with animated backgrounds
- Frontend: React 18, TypeScript, Vite
- Styling: Tailwind CSS
- Database: Supabase (PostgreSQL)
- Authentication: Supabase Auth
- Charts: Chart.js, Three.js, React Three Fiber
- Icons: Lucide React
- API: Finnhub (stock data), Yahoo Finance (historical data)
Create a .env file in the root directory:
VITE_SUPABASE_URL=https://aqlrsigkhzmitknjvbsj.supabase.co
VITE_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFxbHJzaWdraHptaXRrbmp2YnNqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDk1Njg3MzgsImV4cCI6MjA2NTE0NDczOH0.V1cCxF-eodJKpGFooQ_cUmiK7j_UpUpooqRmNLKQrJY-
Clone the repository
git clone <repository-url> cd stock-analyzer
-
Install dependencies
npm install
-
Set up environment variables
- Copy
.env.exampleto.env - Update with your Supabase credentials
- Copy
-
Run the development server
npm run dev
-
Build for production
npm run build
The application uses Supabase with the following main tables:
profiles- User profile informationuser_portfolios- Portfolio data with V-Cash balanceuser_stocks- User stock holdingstransactions- Trading transaction historynet_worth_history- Daily net worth trackingwatchlist- User stock watchlistsreferrals- Referral system for bonuses
- Real-time stock quotes
- Company profiles and news
- Stock search functionality
- Multiple API keys for rate limiting
- Historical stock data
- Chart data for visualizations
- Technical indicators
- Start with $5,000 V-Cash
- Real-time stock prices
- Portfolio tracking and analytics
- Transaction history
- Switch between 2D and 3D chart modes
- Technical indicators (RSI, SMA)
- Interactive price charts
- Volume analysis
- Smooth animations and transitions
- Responsive design
- Real-time data updates
- Professional trading interface
src/
├── auth/ # Authentication components
├── components/ # UI components
├── lib/ # API services and utilities
├── App.tsx # Main application
└── main.tsx # Entry point
Dashboard- Main dashboard with portfolio overviewStockMarket- Stock browsing and tradingTradingModal- Buy/sell interfaceDualModeChart- 2D/3D chart switchingProfileSetup- User onboarding
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is for educational and development purposes.
- API keys are included for development purposes
- Replace with production keys before deployment
- Ensure proper rate limiting for API calls
- Test all trading functionality thoroughly