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
-
๐ค 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
- Node.js 18+ and npm
- OpenAI API key from OpenAI
- PostgreSQL (optional, for full features)
-
Clone the repository
git clone https://github.com/Grieveren/ai-code-teacher.git cd ai-code-teacher -
Install dependencies
npm install npm run install:all
-
Set up environment variables
cp server/.env.example server/.env cp client/.env.example client/.env
Edit
server/.envand add your OpenAI API key:OPENAI_API_KEY=your-openai-api-key
-
Start the application
npm run dev
Or use the convenient script:
./RUN_APP.sh
-
Open your browser
- Frontend: http://localhost:3000
- Backend API: http://localhost:3001
Experience real-time AI-powered code explanations and debugging help:
- Select any code and press
Ctrl+E(orCmd+Eon Mac) for instant explanations - Use "Debug with AI" when encountering errors
- Get personalized hints for coding exercises
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
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
|
|
# 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=10VITE_API_URL=http://localhost:3001/api
VITE_APP_NAME=AI Code Teacher- Setup Guide - Detailed installation instructions
- API Documentation - Coming soon
- Contributing Guidelines - How to contribute
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.
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for AI capabilities
- Monaco Editor for the code editor
- All contributors and supporters of this project