Skip to content

djay29/python-code-reviwer-langchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code Review Analyzer

A full-stack application for automated code review and analysis of Python and React (JavaScript/TypeScript) codebases. The system provides comprehensive reports on code quality, security, performance, best practices, complexity, documentation, and technology-specific insights.

Features

  • Automatic Language Detection: Distinguishes between Python and React code.
  • Comprehensive Analysis: Evaluates code for quality, security, performance, best practices, complexity, and documentation.
  • Technology-Specific Insights: Provides React and Python-specific recommendations.
  • Executive Summary Reports: Generates detailed markdown reports for each code review.
  • User Management: Organizes reports by user and job.
  • Modern Frontend: Built with React and Tailwind CSS.
  • REST API Backend: Built with FastAPI (Python).

Project Structure

backend/
  app/
    analyzer_logic/
    routes/
    utils/
  static/
  main.py
  .env
frontend/
  src/
  public/
  package.json
  tailwind.config.js
  ...

Getting Started

Prerequisites

  • Python 3.8+
  • Node.js 14+
  • npm

Backend Setup

  1. Install dependencies
    Navigate to the backend directory and install required packages:

    pip install -r requirements.txt
  2. Configure Environment
    Copy .env.example to .env and set your environment variables.

  3. Run the Backend

    uvicorn main:app --reload

Frontend Setup

  1. Install dependencies
    Navigate to the frontend directory:

    npm install
  2. Run the Frontend

    npm start

Usage

  • Access the frontend at http://localhost:3000
  • The backend API runs at http://localhost:8000
  • Upload or paste your code for analysis and receive a detailed markdown report.

Folder Details

  • backend/app/analyzer_logic/: Core logic for code analysis.
  • backend/app/routes/: API endpoints.
  • backend/app/utils/: Utility modules (database, extensions, models).
  • backend/static/: Stores generated reports by user.
  • frontend/src/: React application source code.

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

MIT


Made with ❤️ for automated code review.

About

THe AI code reviwer for the python code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published