Skip to content

Divyesh-5981/financegpt-ai

Repository files navigation

FinanceGPT 🚀

An AI-powered financial education platform built with Next.js 15 and Google Gemini AI. Learn personal finance through interactive conversations, visualizations, and structured learning modules.

Next.js TypeScript React Tailwind CSS

✨ Features

🤖 AI-Powered Learning

  • Interactive Chat: AI tutor powered by Google Gemini 2.5 Pro
  • Context-Aware Responses: Personalized guidance based on current learning module
  • Educational Focus: Financial concepts explained in simple terms

📚 Learning Modules

  • Budgeting Basics: 50/30/20 rule, expense tracking, emergency funds
  • Investing 101: Stocks, bonds, index funds, compound interest
  • Smart Saving: High-yield accounts, goal-based strategies
  • Debt Management: Debt snowball/avalanche methods
  • Retirement Planning: 401(k), IRA, Social Security
  • Financial Goals: SMART goals and achievement tracking

📊 Interactive Tools

  • Compound Interest Calculator: Investment growth visualizations
  • Budget Dashboard: Expense tracking and insights
  • Loan Calculator: Payment comparisons and amortization
  • Retirement Calculator: Savings trajectory planning

🎨 User Experience

  • Responsive Design: Works on all devices
  • Dark Mode: Automatic theme detection
  • Progress Tracking: Learning analytics and achievements
  • Smooth Animations: Powered by Framer Motion

🛠️ Tech Stack

🚀 Quick Start

Prerequisites

  • Node.js 18.0 or later
  • npm, yarn, or bun package manager
  • Google Gemini API Key

Installation

  1. Clone the repository

    git clone https://github.com/Divyesh-5981/financeGPT.git
    cd financeGPT
  2. Install dependencies

    npm install
  3. Set up environment variables Create a .env.local file:

    GEMINI_API_KEY=your_gemini_api_key_here
  4. Start development server

    npm run dev
  5. Open your browser Navigate to http://localhost:3000

Available Scripts

npm run dev          # Start development server with Turbopack
npm run build        # Build for production
npm run start        # Start production server
npm run lint         # Run ESLint
npm run type-check   # TypeScript type checking

📁 Project Structure

app/
├── api/                    # API routes (Edge Runtime)
│   ├── chat/              # AI chat endpoints
│   └── alpha-vantage/     # Financial data API
├── chat/                  # AI chat interface
├── learn/                 # Learning modules
│   └── [module]/         # Dynamic module pages
├── visualizations/        # Interactive financial tools
└── page.tsx              # Homepage

components/
├── chat/                 # Chat interface
├── ui/                   # Reusable UI components
└── visualizations/       # Financial calculators

lib/
├── gemini/               # AI integration
│   ├── client.ts        # Gemini API client
│   ├── systemPrompt.ts  # AI system prompt
│   └── modulePrompts.ts # Module-specific prompts
└── services/            # Business logic
    ├── progressService.ts # Learning progress
    └── budgetService.ts   # Budget calculations

🎯 Usage

AI Chat

  • Ask questions about personal finance
  • Get context-aware responses based on current module
  • Educational content with simple explanations

Learning Modules

  1. Navigate to /learn to see all modules
  2. Select a module (budgeting, investing, etc.)
  3. Use the integrated chat for topic-specific guidance
  4. Progress is tracked locally in your browser

Interactive Tools

  • /visualizations - Access all financial calculators
  • Compound interest calculator with dynamic charts
  • Budget dashboard for expense tracking
  • Loan calculator for payment comparisons
  • Retirement planning tools

🔧 Environment Variables

# Required for AI chat functionality
GEMINI_API_KEY=your_gemini_api_key_here

# Optional for market data features
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key_here

Get your Gemini API key from Google AI Studio

📝 License

ISC License - see LICENSE file for details.

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

For major changes, please open an issue first to discuss your ideas.


Built with Next.js 15 • TypeScript • Google Gemini AI • Tailwind CSS

⭐ Star this repo if you find it helpful!

Releases

No releases published

Packages

 
 
 

Contributors