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

https://github.com/hassanshehzad1/code_reviewer


https://github.com/hassanshehzad1/code_reviewer

ai code express full-stack javascript mern-stack nodejs

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# CODE REVIEWER AI

🚀 A full-stack code review tool built using React for the frontend and Express.js for the backend.🚀 AI-Powered Code Review Tool built with React, Express.js, and Google Generative AI to analyze and provide feedback on your code.

Features



    AI-Powered Code Review


  • Uses Google Generative AI to analyze code and provide suggestions & improvements.

  • Frontend (React 19 + Vite)

  • Code syntax highlighting with Prism.js

  • Markdown support via React Markdown

  • Responsive and lightweight UI

  • Backend (Node.js + Express.js)

  • Handles API requests for AI-based code analysis

  • Securely loads environment variables using dotenv

  • Uses CORS to allow cross-origin API calls

Tech Stack

Frontend Backend AI
React 19 Express.js Google Generative AI
Vite Node.js
Prism.js dotenv
Axios CORS

Tech Installation & Setup


Clone the Repository

git clone https://github.com/hassanshehzad1/Code_Reviewer.git
cd Code_Reviewer

cd Backend
npm install

node index.js

cd ../Frontend
npm install
npm run dev

Environment Variables

PORT=5000
GOOGLE_AI_API_KEY=your_api_key_here

Available Scripts
Inside Frontend:

npm run dev - Runs the frontend in development mode
npm run build - Builds the production-ready frontend
npm run preview - Previews the built frontend
Inside Backend:

node index.js - Starts the backend server

How the AI Works



  • User submits code for review via the frontend.

  • Backend sends the code to Google Generative AI.

  • AI analyzes the code and provides feedback.

  • Frontend displays AI-generated suggestions to improve the code.