AI Code Reviewer is a web application that uses Google Gemini 2.0 Flash to analyze and review code. Built with ReactJS, NodeJS, and ExpressJS, the app helps developers improve their code quality by providing intelligent feedback and suggestions.
- Frontend: ReactJS,Prismjs,react-markdown,react-simple-code-editor
- Backend: NodeJS, ExpressJS
- AI Model: Google Gemini 2.0 Flash
- 📑 Code Analysis: Analyze code for best practices, performance, and potential bugs.
- ⚡ Real-time Feedback: Get suggestions and improvements in real-time.
- 🔍 Code Quality Insights: Receive insights on code structure, readability, and maintainability.
- 🌐 User-Friendly Interface: Simple and intuitive interface for efficient code reviews.
-
Clone the repository:
git clone https://github.com/ankitjhagithub21/code-reviewer.git cd code-reviewer
-
Install dependencies:
# Install client dependencies cd frontend npm install # Install server dependencies cd ../backend npm install
-
Set up environment variables: Create a
.env
file in theserver
directory with the following:GEMINI_API_KEY=your_google_gemini_api_key PORT=3000 ORIGIN=http://localhost:5173
-
Start the application:
# Start the server cd backend npm start # Start the client cd frontend npm start
The app will be accessible at http://localhost:5173
.
- Enter your code into the provided text area.
- Click the "Review" button.
- View AI-generated feedback and suggestions.
- Performance may depend on the AI model's response time.
- Code analysis is limited to the capabilities of Google Gemini 2.0 Flash.
Contributions are welcome! Feel free to fork the repository, submit issues, or create pull requests.
This project is licensed under the MIT License.
Happy Coding! 🚀