Skip to content

AI Code Reviewer is a web-based tool that uses AI to analyze and review code submissions. It provides automated feedback on code quality, readability, and efficiency, compares submissions to ideal solutions, and suggests improvements helping developers learn and improve faster.

Notifications You must be signed in to change notification settings

Vashu2003/AI-Code-Reviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🤖 AI Code Reviewer

License Build Status Frontend

AI Code Reviewer is a web application that allows developers to submit their code and receive instant, AI-generated feedback on bugs, suggestions, readability, efficiency, and a corrected version (if applicable). It also compares the submitted code with ideal sample solutions and stores all submissions in a history log.


🌐 Live Demo

🚀 Live App on Netlify


📁 Project Structure

AI-Code-Reviewer/
├── Backend/ # FastAPI backend
│ ├── app/ # Main app files
│ │ ├── main.py
│ │ ├── models.py
│ │ ├── database.py
│ │ ├── schemas.py
│ │ └── ai_utils.py
│ ├── requirements.txt
│ └── start.sh
├── Frontend/ # React + Tailwind frontend (Vite)
│ ├── src/
│ │ ├── components/
│ │ ├── pages/
│ │ ├── App.jsx
│ │ └── main.jsx
│ ├── public/
│ ├── vite.config.js
│ └── .env
└── README.md

🧠 Features

  • ✅ Submit Python or JavaScript code
  • 🧠 AI-generated feedback using Gemini API
  • 📊 Readability & efficiency scoring
  • 🐞 Bug detection & suggestions
  • 💡 Improved code recommendations
  • 🧩 Similarity check with ideal sample answers
  • 🕓 Submission history viewer
  • 🧑‍🏫 Admin panel to add sample answers
  • 💻 Monaco-based code editor

💡 Tech Stack

Frontend

  • React (Vite)
  • TailwindCSS
  • Axios
  • Monaco Editor
  • Chart.js
  • Lucide Icons
  • Deployed on Netlify

Backend

  • FastAPI
  • SQLAlchemy + SQLite
  • Google Generative AI (Gemini 2.5 Pro)
  • Uvicorn
  • Deployed on Railway

🔧 Setup Instructions

⚙️ Backend

cd Backend
python -m venv venv
source venv/bin/activate  # Or venv\Scripts\activate on Windows
pip install -r requirements.txt

# Set up .env
echo "GEMINI_API_KEY=your-api-key-here" > .env

# Run server
uvicorn app.main:app --reload

⚙️ Frontend

cd Frontend
npm install

# Create .env file
echo "VITE_API_BASE_URL=http://localhost:8000" > .env

npm run dev

⚙️ Environment Variables

  • Backend
GEMINI_API_KEY=your-api-key-here
  • Frontend
VITE_API_BASE_URL=http://localhost:8000

Screenshots

📸 Screenshots

Home Page Submit Code Page Feedback Panel
Home Page Submit Code Page Feedback Panel
Add Sample History Mobile View
Add Sample Answer Sample Answers Submission History

📝 License

MIT License © 2025 Vashu Singh

Acknowledgments

About

AI Code Reviewer is a web-based tool that uses AI to analyze and review code submissions. It provides automated feedback on code quality, readability, and efficiency, compares submissions to ideal solutions, and suggests improvements helping developers learn and improve faster.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published