The AI Code Review project is a full-stack web application that helps developers review their code using AI-powered analysis. Built with Node.js, Express.js, MongoDB, React.js, and TailwindCSS, this application allows users to submit their code and receive detailed feedback on issues, improvements, and suggested fixes.
- Submit Code for AI Review – Upload code snippets for AI-driven analysis.
- Detailed Feedback – Identify syntax issues, logical errors, and best practice violations.
- Performance Optimization Tips – AI suggestions for improved efficiency and maintainability.
- Syntax & Best Practices Analysis – Helps enhance code quality and readability.
- Backend: Node.js, Express.js.
- Frontend: ReactJs, TailwindCSS
- AI Integration: Gemini AI (for code analysis and recommendations)
-
Navigate to the
frontend
directory:cd frontend
-
Install dependencies:
yarn
-
Set up environment variables:
cp .env.sample .env
Update the
.env
file with your Backend API URL and other required credentials. -
Start the frontend server:
yarn start
The frontend should be accessible at
http://localhost:5173
.
-
Navigate to the
backend
directory:cd ../backend
-
Install dependencies:
yarn
-
Set up environment variables:
cp .env.sample .env
Update
.env
file with your credentials. -
Start the backend server:
npm run dev
The backend should be accessible at
http://localhost:8000
.
- Navigate to the Home Page and paste your JavaScript code into the input field.
- Click on the "Review Code" button.
- The AI will analyze the code and provide:
- Bad Code Section – Highlights issues in the submitted code.
- Issues & Fixes – Explains problems and suggests AI-generated fixes.
- Improvements – Lists best practices and optimization suggestions.
- The AI review consists of three sections:
- 🚨 Issues: Points out errors like syntax mistakes, security vulnerabilities, or missing declarations.
- ✅ Recommended Fixes: AI-generated improved version of the submitted code. -💡 Improvements: Suggestions to enhance efficiency, maintainability, and readability.
- Clone the repository:
git clone https://github.com/ma3llim007/ai-code-review.git
- Create a new branch:
git checkout -b feature/your-feature-name
- Implement your changes and commit:
git add . git commit -m "Describe your changes here"
- Push to GitHub:
git push origin feature/your-feature-name
- Open a pull request on GitHub and describe your changes.
- Follow the project structure and best practices.
- Write clean, modular, and well-documented code.
- Ensure all features are properly tested before submitting PRs.
- Use GitHub Issues to report bugs and suggest enhancements.
This project is licensed under the MIT License - see the LICENSE file for details.
- React.js – Scalable and flexible frontend development.
- TailwindCSS – For efficient and modern UI styling.
- Express.js – Lightweight and robust backend framework.
- Gemini AI API – AI-powered code analysis and recommendations.