Skip to content

About

AI-powered coding education platform with Claude integration

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AI Code Teacher ๐Ÿค–

License Node TypeScript React OpenAI

An intelligent coding education platform powered by OpenAI that provides personalized, real-time programming assistance and adaptive learning experiences.

Features โ€ข Quick Start โ€ข Demo โ€ข Documentation โ€ข Contributing

โœจ Features

  • ๐Ÿค– AI-Powered Teaching Assistant

  • Real-time code explanations with OpenAI

  • Intelligent debugging assistance

  • Context-aware hint generation

  • Personalized code reviews

  • ๐Ÿ’ป Interactive Code Editor

    • Monaco Editor with syntax highlighting
    • Multi-language support (JavaScript, Python, HTML/CSS, and more)
    • Real-time error detection
    • Integrated AI assistance buttons
  • ๐Ÿ“š Adaptive Learning System

    • Personalized learning paths based on progress
    • AI-adjusted difficulty levels
    • Dynamic exercise generation
    • Progress tracking and analytics
  • ๐ŸŽฏ Smart Features

    • Conversational AI chat interface
    • Project-based learning approach
    • Instant feedback on code submissions
    • Code execution in sandboxed environment

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • OpenAI API key from OpenAI
  • PostgreSQL (optional, for full features)

Installation

  1. Clone the repository

    git clone https://github.com/Grieveren/ai-code-teacher.git
    cd ai-code-teacher
  2. Install dependencies

    npm install
    npm run install:all
  3. Set up environment variables

    cp server/.env.example server/.env
    cp client/.env.example client/.env

    Edit server/.env and add your OpenAI API key:

    OPENAI_API_KEY=your-openai-api-key
  4. Start the application

    npm run dev

    Or use the convenient script:

    ./RUN_APP.sh
  5. Open your browser

๐ŸŽฎ Demo

Code Editor with AI Assistance

Experience real-time AI-powered code explanations and debugging help:

  • Select any code and press Ctrl+E (or Cmd+E on Mac) for instant explanations
  • Use "Debug with AI" when encountering errors
  • Get personalized hints for coding exercises

Interactive Learning

Navigate to the Practice page to:

  • Work on coding exercises with AI guidance
  • Get real-time feedback on your solutions
  • Track your progress through different difficulty levels

๐Ÿ“ Project Structure

ai-code-teacher/
โ”œโ”€โ”€ client/                 # React frontend
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/    # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ pages/         # Application pages
โ”‚   โ”‚   โ”œโ”€โ”€ services/      # API integration
โ”‚   โ”‚   โ””โ”€โ”€ hooks/         # Custom React hooks
โ”‚   โ””โ”€โ”€ package.json
โ”œโ”€โ”€ server/                 # Express backend
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ api/           # REST API endpoints
โ”‚   โ”‚   โ”œโ”€โ”€ services/      # Business logic
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ openai/    # AI integration
โ”‚   โ”‚   โ””โ”€โ”€ middleware/    # Express middleware
โ”‚   โ””โ”€โ”€ package.json
โ””โ”€โ”€ README.md

๐Ÿ› ๏ธ Tech Stack

Frontend

  • React 18 - UI framework
  • TypeScript - Type safety
  • Vite - Build tool
  • Monaco Editor - Code editor
  • Tailwind CSS - Styling
  • Framer Motion - Animations
  • React Query - Data fetching

Backend

  • Node.js - Runtime
  • Express - Web framework
  • TypeScript - Type safety
  • OpenAI API - AI integration
  • PostgreSQL - Database
  • JWT - Authentication
  • Winston - Logging

๐Ÿ”ง Configuration

Environment Variables

Server (.env)

# Server
PORT=3001
NODE_ENV=development

# Database (optional)
DATABASE_URL=postgresql://user:password@localhost:5432/teacher_app

# Authentication
JWT_SECRET=your-secret-key

# OpenAI
OPENAI_API_KEY=your-openai-api-key

# Rate Limiting
AI_RATE_LIMIT_MAX_REQUESTS=10

Client (.env)

VITE_API_URL=http://localhost:3001/api
VITE_APP_NAME=AI Code Teacher

๐Ÿ“š Documentation

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

See CONTRIBUTING.md for more details.

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • OpenAI for AI capabilities
  • Monaco Editor for the code editor
  • All contributors and supporters of this project

Made with โค๏ธ by the AI Code Teacher community

About

AI-powered coding education platform with Claude integration

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages