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
- Host: GitHub
- URL: https://github.com/hassanshehzad1/code_reviewer
- Owner: hassanshehzad1
- Created: 2025-02-24T17:38:03.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-02-24T17:52:05.000Z (11 months ago)
- Last Synced: 2025-02-24T18:36:08.595Z (11 months ago)
- Topics: ai, code, express, full-stack, javascript, mern-stack, nodejs
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
- 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
AI-Powered Code Review
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.