Skip to content

Created an AI-driven code review tool with React and Express.js for real-time bug detection and smart suggestions. Automated the review process to improve productivity and code quality, deployed on Vercel.

Notifications You must be signed in to change notification settings

Pranaysherkar/Code-Review

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code Review

A simple code review web application built using React for the frontend and Express for the backend. It allows users to input JavaScript code and get automated reviews with suggestions for improvement.

Features

  • Code Input: Users can input their JavaScript code in a syntax-highlighted editor.
  • Code Review: The application sends the code to an API, which provides feedback and suggestions for improvement.
  • Responsive UI: The interface is fully responsive, designed to work seamlessly on both desktop and mobile devices.
  • Syntax Highlighting: Code is highlighted using Prism.js.
  • Real-time Review: The review is displayed instantly after processing the code.

Technologies Used

Frontend

  • React: JavaScript library for building user interfaces.
  • Tailwind CSS: Utility-first CSS framework for building modern web designs.
  • Vite: Next-generation, fast, and optimized bundler for frontend applications.
  • Prism.js: Lightweight, extensible syntax highlighter for code.
  • React Markdown: Markdown component for rendering Markdown syntax.
  • Axios: HTTP client for making API requests.
  • React Simple Code Editor: A code editor component for React that supports syntax highlighting.
  • Remark GFM: A plugin for supporting GitHub-flavored Markdown.

Backend

  • Express.js: A minimal and flexible Node.js web application framework.
  • @google/genai: A package used to integrate Google's AI for generating code reviews.
  • dotenv: Loads environment variables from a .env file into process.env.
  • CORS: Provides a middleware to enable Cross-Origin Resource Sharing.

Installation

To get started with the project, clone the repository and install the dependencies:

Frontend

  1. Navigate to the frontend folder:
cd frontend
  1. Install frontend dependencies:
npm install
  1. Run the frontend application:
npm run dev

Backend

  1. Navigate to the backend folder:
cd backend
  1. Install frontend dependencies:
npm install
  1. Create a .env file for sensitive data (like API keys) in the backend folder.

  2. Run the backend application:

node server.js

This will start the backend server at http://localhost:5000, or another port you specify in the server.js file.

Usage

Frontend

Enter your JavaScript code into the code editor.

Backend

The code is sent to the backend for processing, where it is reviewed by the AI and suggestions are generated.

Review

Once the code is reviewed, the suggestions are displayed below the editor.

About

Created an AI-driven code review tool with React and Express.js for real-time bug detection and smart suggestions. Automated the review process to improve productivity and code quality, deployed on Vercel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published