Skip to content

Latest commit

 

History

History
75 lines (51 loc) · 1.82 KB

README.md

File metadata and controls

75 lines (51 loc) · 1.82 KB

CodeReviewer - Code Review Tool with CodeLlama and Together AI

CodeReviewer is a code review tool that utilizes CodeLlama to analyze pull requests and provide detailed code reviews. It also integrates with Together AI for inference and uses GitHub OAuth for authentication. The project is built with Next.js and bootstrapped with create-next-app. It uses Prisma with a SQLite database and NextAuth for authentication.

Prerequisites

Before getting started, ensure you have the following installed on your machine:

  • Node.js (version 14 or later)
  • npm (version 6 or later)

Getting Started

  1. Clone the repository:

    git clone https://github.com/plotlabs/codeReviewer.git
  2. Navigate to the project directory:

    cd codeReviewer
  3. Install the dependencies:

    npm install
  4. Set up the environment variables:

    • Create a .env.local file in the root of the project.

    • Add the necessary environment variables for Prisma, SQLite, NextAuth, Together AI, and GitHub OAuth. For example:

      DATABASE_URL="file:./dev.db"
      NEXTAUTH_SECRET=your-secret-here
      TOGETHER_API_KEY=your-together-ai-api-key
      GITHUB_CLIENT_ID=your-github-client-id
      GITHUB_CLIENT_SECRET=your-github-client-secret
      
  5. Set up the database:

    • Run the Prisma migration to create the necessary tables:

      npx prisma migrate dev
    • Generate the Prisma client:

      npx prisma generate
  6. Run the development server:

    npm run dev

    Alternatively, you can use yarn, pnpm, or bun:

    yarn dev
    # or
    pnpm dev
    # or
    bun dev
  7. Go to http://localhost:3000