An open API service indexing awesome lists of open source software.

https://github.com/ankitjhagithub21/code-reviewer

This is an ai code reviewer app which review the provided code by the user and find errors and give solution.
https://github.com/ankitjhagithub21/code-reviewer

ai-code-reviewer code-reviewer expressjs nodejs reactjs

Last synced: 3 months ago
JSON representation

This is an ai code reviewer app which review the provided code by the user and find errors and give solution.

Awesome Lists containing this project

README

          

# AI Code Reviewer

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.

## ๐Ÿ› ๏ธ Tech Stack

- **Frontend:** ReactJS,Prismjs,react-markdown,react-simple-code-editor
- **Backend:** NodeJS, ExpressJS
- **AI Model:** Google Gemini 2.0 Flash

## ๐Ÿš€ Features

- ๐Ÿ“‘ **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.

## ๐Ÿ“ฆ Installation

1. Clone the repository:
```bash
git clone https://github.com/ankitjhagithub21/code-reviewer.git
cd code-reviewer
```

2. Install dependencies:
```bash
# Install client dependencies
cd frontend
npm install

# Install server dependencies
cd ../backend
npm install
```

3. Set up environment variables:
Create a `.env` file in the `server` directory with the following:
```bash
GEMINI_API_KEY=your_google_gemini_api_key
PORT=3000
ORIGIN=http://localhost:5173
```

4. Start the application:
```bash
# Start the server
cd backend
npm start

# Start the client
cd frontend
npm start
```

The app will be accessible at `http://localhost:5173`.

## ๐Ÿงช Usage

1. Enter your code into the provided text area.
2. Click the "Review" button.
3. View AI-generated feedback and suggestions.

## โš ๏ธ Limitations

- Performance may depend on the AI model's response time.
- Code analysis is limited to the capabilities of Google Gemini 2.0 Flash.

## ๐Ÿค Contributing

Contributions are welcome! Feel free to fork the repository, submit issues, or create pull requests.

## ๐Ÿ“„ License

This project is licensed under the MIT License.

---

**Happy Coding!** ๐Ÿš€