Demo โข Features โข Installation โข Usage โข Tech Stack
- Real-time Stock Data - Live prices and market data for Indian stocks (NSE/BSE)
- Interactive TradingView Charts - Professional-grade candlestick, baseline, and technical analysis charts
- Market Overview - Comprehensive dashboard with heatmaps and market quotes
- Stock Search - Powerful search functionality to find Indian stocks instantly
- Watchlist Management - Create and manage your personalized stock watchlist
- Company Insights - Detailed company profiles and financial data
- Technical Analysis - Real-time technical indicators and analysis
- Company Financials - Balance sheets, income statements, and key metrics
- Market Heatmap - SENSEX sector visualization with performance tracking
- News Feed - Latest market news and company-specific updates
- Authentication - Secure sign-up/sign-in with Better Auth
- Personalized Experience - Custom watchlists and preferences
- Email Notifications - Daily market summaries and news updates
- User Profiles - Investment goals, risk tolerance, and preferred industries
- Dark Mode - Modern, eye-friendly dark theme
- Responsive Design - Optimized for desktop, tablet, and mobile
- Keyboard Shortcuts - Quick access with Cmd/Ctrl + K
- Beautiful Components - Built with Radix UI and Shadcn/ui
- Next.js 15.5.4 - React framework with App Router
- React 19.1.0 - UI library
- TypeScript - Type-safe JavaScript
- Tailwind CSS 4.0 - Utility-first CSS framework
- Shadcn/ui - Re-usable component library
- Radix UI - Accessible component primitives
- MongoDB - NoSQL database
- Mongoose 8.19.1 - MongoDB object modeling
- Better Auth 1.3.27 - Modern authentication solution
- Finnhub API - Real-time stock market data
- TradingView Widgets - Professional charting
- Inngest 3.44.3 - Background jobs and workflows
- Nodemailer 7.0.9 - Email notifications
- ESLint - Code linting
- Turbopack - Next.js bundler
- Lucide Icons - Beautiful icon library
- Node.js 20+ installed
- MongoDB database (local or cloud)
- Finnhub API key (Get it here)
- Better Auth credentials
- Clone the repository
git clone https://github.com/ateendra24/Realtime_Stock_Tracker.git
cd Realtime_Stock_Tracker- Install dependencies
npm install
# or
yarn install
# or
pnpm install- Environment Configuration
Create a .env.local file in the root directory:
# MongoDB
MONGODB_URI=your_mongodb_connection_string
# Better Auth
BETTER_AUTH_SECRET=your_secret_key_here
BETTER_AUTH_URL=http://localhost:3000
# Finnhub API
FINNHUB_API_KEY=your_finnhub_api_key
NEXT_PUBLIC_FINNHUB_API_KEY=your_finnhub_api_key
# Inngest (Optional)
INNGEST_EVENT_KEY=your_inngest_event_key
INNGEST_SIGNING_KEY=your_inngest_signing_key
# Email (Optional - for notifications)
EMAIL_USER=[email protected]
EMAIL_PASS=your_email_app_password- Test Database Connection
npm run test:db- Run the development server
npm run dev- Open your browser
http://localhost:3000
- Browse Dashboard - View real-time Indian market data
- Explore Stocks - Search and view individual stock details
- View Charts - Access TradingView charts and technical analysis
- Create Account - Sign up with email and preferences
- Build Watchlist - Add your favorite Indian stocks
- Set Alerts - Configure price alerts (coming soon)
- Get Updates - Receive daily market summaries via email
Cmd/Ctrl + K- Open stock search- Navigate through stocks quickly with keyboard
stock/
โโโ app/ # Next.js App Router
โ โโโ (auth)/ # Authentication pages
โ โ โโโ sign-in/
โ โ โโโ sign-up/
โ โโโ (root)/ # Main application
โ โ โโโ page.tsx # Dashboard
โ โ โโโ stocks/[symbol]/ # Stock details page
โ โโโ api/ # API routes
โ โโโ layout.tsx # Root layout
โโโ components/ # React components
โ โโโ ui/ # Shadcn/ui components
โ โโโ forms/ # Form components
โ โโโ Header.tsx
โ โโโ SearchCommand.tsx
โ โโโ TradingViewWidget.tsx
โโโ lib/ # Utilities and actions
โ โโโ actions/ # Server actions
โ โโโ better-auth/ # Auth configuration
โ โโโ inngest/ # Background jobs
โ โโโ nodemailer/ # Email templates
โ โโโ constants.ts # App constants
โ โโโ utils.ts # Helper functions
โโโ database/ # Database models
โ โโโ models/
โ โโโ mongoose.ts
โโโ hooks/ # Custom React hooks
โโโ middleware/ # Next.js middleware
โโโ public/ # Static assets
โโโ types/ # TypeScript definitions
- Supports NSE (National Stock Exchange) and BSE (Bombay Stock Exchange)
- 45+ popular Indian stocks across all sectors
- SENSEX heatmap visualization
- Indian market news feed
Six professional widgets:
- Symbol Information
- Candlestick Chart
- Baseline Chart
- Technical Analysis
- Company Profile
- Financial Statements
- Public access to dashboard and stock pages
- Seamless sign-in/sign-up experience
- Automated daily news summaries
- Personalized email notifications
- Welcome emails for new users
# Development
npm run dev # Start development server with Turbopack
# Production
npm run build # Build for production
npm start # Start production server
# Utilities
npm run lint # Run ESLint
npm run test:db # Test database connectionContributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
| Variable | Description | Required |
|---|---|---|
MONGODB_URI |
MongoDB connection string | โ Yes |
BETTER_AUTH_SECRET |
Secret key for auth | โ Yes |
BETTER_AUTH_URL |
Application URL | โ Yes |
FINNHUB_API_KEY |
Finnhub API key | โ Yes |
INNGEST_EVENT_KEY |
Inngest event key | โ Optional |
EMAIL_USER |
Email for notifications | โ Optional |
EMAIL_PASS |
Email password | โ Optional |
โญ Star this repo if you find it helpful!