A modern web application that provides real-time stock market news analysis using AI. Built with Next.js, Tailwind CSS, and Gemini AI.
- 📰 Real-time stock market news from various sources
- 🤖 AI-powered news analysis using Google's Gemini AI
- 🎨 Modern, responsive UI with ChatGPT-like sidebar
- 📊 Sentiment analysis (Positive/Negative/Neutral)
- 🔍 Full article content analysis
- 📱 Mobile-friendly design
- ⚡ Fast and efficient performance
- Framework: Next.js 15
- Styling: Tailwind CSS
- UI Components: Shadcn UI
- AI Integration: Google Gemini AI
- News API: NewsAPI.org
- Content Parsing: Cheerio
- Icons: Lucide Icons
- Clone the repository:
git clone https://github.com/yourusername/stock-smart.git
cd stock-smart- Install dependencies:
npm install-
Set up environment variables:
- Copy
.env.exampleto.env:
cp .env.example .env
- Get your API keys:
- Update the
.envfile with your API keys
- Copy
-
Run the development server:
npm run dev- Open http://localhost:3000 in your browser.
The following environment variables are required:
NEWS_API_KEY: Your News API key (server-side)GEMINI_API_KEY: Your Google Gemini AI key (server-side only)NODE_ENV: Environment setting (development/production)
.env file or expose your API keys. The .env file is already included in .gitignore.
- Real-time stock market news updates
- Top 10 latest news with "Show More" functionality
- News cards with images, titles, and descriptions
- Source attribution and publication dates
- Sentiment analysis of news articles
- Color-coded impact indicators:
- 🟢 Positive Impact
- 🔴 Negative Impact
- ⚪ Neutral Impact
- Full article content analysis
- Brief explanation of market impact
- ChatGPT-like sidebar navigation
- Responsive design for all devices
- Clean and modern UI
- Easy-to-use analysis controls
- Fetches real-time stock market news
- Supports multiple news sources
- Includes images and full article content
- Analyzes news sentiment
- Provides market impact assessment
- Generates concise explanations
- Fork the repository
- 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
This project is licensed under the MIT License - see the LICENSE file for details.