CodeMentorAI
AI-powered programming tutor designed to provide concise, clear, and helpful answers to coding questions. Perfect for learners who want to understand programming concepts faster and more efficiently.
Demo
🎬 Live Demo: CodeMentorAI
Technologies Used
Backend: FastAPI, Pydantic, Uvicorn
Frontend: React, TailwindCSS, Vite
AI: OpenAI / Groq API
Version Control: Git & GitHub
Environment Management: Python venv, dotenv
Features
Ask coding questions through a simple web interface
AI provides short, clear, and concise programming explanations
Responsive design for desktop and mobile
GitHub link integration for portfolio showcase
Animated backgrounds and modern UI
Setup Instructions Backend
Clone the repository:
git clone https://github.com/rehmnjr/CodeMentorAI.git cd CodeMentorAI/backend
Create a virtual environment:
python3 -m venv venv source venv/bin/activate # macOS/Linux venv\Scripts\activate # Windows
Install dependencies:
pip install -r requirements.txt
Create a .env file:
OPENAI_API_KEY=your_api_key_here PORT=5000
Run the backend server:
uvicorn main:app --reload --host 0.0.0.0 --port $PORT
Frontend
Navigate to the frontend directory:
cd ../frontend
Install dependencies:
npm install
Start the development server:
npm run dev
Usage
Visit your frontend URL (e.g., http://localhost:5173)
Type in programming questions
Receive AI-generated answers instantly
Contributing
Fork the repository
Create your feature branch:
git checkout -b feature/YourFeature
Commit your changes:
git commit -m "Add some feature"
Push to the branch:
git push origin feature/YourFeature
Open a Pull Request
Deployment
Backend: FastAPI + Uvicorn (can be deployed on Render, Railway, or Heroku)
Frontend: React + Vite (can be deployed on Vercel, Netlify, or Render)