Skip to content

A MERN stack web app that uses AI to analyze, review, and suggest improvements for code in real-time.

Notifications You must be signed in to change notification settings

SwedeshnaMishra/AI_Powered_CodeReviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– AI-Powered Code Reviewer

Build an AI-Powered Code Reviewer using the MERN Stack! πŸš€
This project leverages artificial intelligence to analyze, review, and suggest improvements for source code, thereby enhancing development efficiency and reducing manual review overhead.


πŸ“Œ Features

  • πŸ” AI-Driven Code Analysis
    Uses AI models to detect code issues and provide intelligent suggestions.

  • πŸ“‚ Multi-language Support
    Review capabilities for multiple programming languages (planned/extendable).

  • πŸ’‘ Real-Time Suggestions
    Instant feedback during code input or upload.

  • πŸ“Š Clean Frontend UI
    Built with React and TailwindCSS for a modern user experience.

  • πŸ” Modular Backend
    RESTful API powered by Express and a scalable architecture (MVC pattern).

  • πŸ”„ Pluggable AI Services
    Easily integrate external LLM APIs like OpenAI, Gemini, or custom models.


πŸ—ƒ Folder Structure

AI_Powered_CodeReviewer/
β”œβ”€β”€ BackEnd/
β”‚ β”œβ”€β”€ src/
β”‚ β”‚ β”œβ”€β”€ controllers/
β”‚ β”‚ β”‚ └── ai.controller.js # Handles incoming requests and responses
β”‚ β”‚ β”œβ”€β”€ routes/
β”‚ β”‚ β”‚ └── ai.routes.js # Defines endpoints for code analysis
β”‚ β”‚ └── services/
β”‚ β”‚ └── ai.service.js # Core logic to process code with AI
β”‚ β”œβ”€β”€ app.js # Express app configuration
β”‚ β”œβ”€β”€ server.js # Entry point to start the server
β”‚ β”œβ”€β”€ package.json
β”‚ └── package-lock.json
β”‚
β”œβ”€β”€ FrontEnd/
β”‚ β”œβ”€β”€ public/ # Static assets
β”‚ β”œβ”€β”€ src/
β”‚ β”‚ β”œβ”€β”€ assets/ # Images, icons, and reusable styles
β”‚ β”‚ β”œβ”€β”€ App.jsx # Main React component
β”‚ β”‚ β”œβ”€β”€ main.jsx # ReactDOM render
β”‚ β”‚ β”œβ”€β”€ App.css # App-wide styles
β”‚ β”‚ β”œβ”€β”€ index.css # Global CSS
β”‚ β”œβ”€β”€ index.html
β”‚ β”œβ”€β”€ vite.config.js
β”‚ β”œβ”€β”€ eslint.config.js
β”‚ β”œβ”€β”€ package.json
β”‚ β”œβ”€β”€ package-lock.json
β”‚ └── README.md
β”‚
β”œβ”€β”€ README.md

πŸ› οΈ Tech Stack

Frontend

  • React (Vite)
  • TailwindCSS
  • ESLint

Backend

  • Node.js + Express
  • Modular MVC pattern (controller, service, routes)
  • OpenAI/Gemini API integration (planned/customizable)

πŸ”§ Setup Instructions

πŸš€ Backend Setup

cd BackEnd
npm install
node server.js

πŸ’» Frontend Setup

cd FrontEnd
npm install
npm run dev

Ensure the backend is running at a specific base URL (http://localhost:5000 by default) which is consumed by the frontend React app.

🧠 How It Works

  • User pastes or uploads code in the UI.
  • The frontend sends the code to the backend via POST /api/review.
  • The backend controller invokes the AI service logic to analyze the code.
  • Suggestions and feedback are returned and displayed in the UI.

πŸ“¦ API Overview

Endpoint Method Description
/api/review POST Analyze submitted code and return suggestions
/api/health GET Check if the backend server is running

For Contributing

If you want to contribute to this project, please follow these steps:

  • Fork the repository.
  • Create a new branch (git checkout -b feature/your-feature-name).
  • Make your changes and commit them (git commit -m 'Add some feature').
  • Push to the branch (git push origin feature/your-feature-name).
  • Open a pull request.

Project Maintainer

Github: Swedeshna Mishra

About

A MERN stack web app that uses AI to analyze, review, and suggest improvements for code in real-time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published