Skip to content

CodeMentorAI – An AI-powered coding tutor that provides clear, concise answers to programming questions, helping you learn faster and code smarter.

Notifications You must be signed in to change notification settings

rehmnjr/CodeMentorAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

CodeMentorAI – An AI-powered coding tutor that provides clear, concise answers to programming questions, helping you learn faster and code smarter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published