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.
Before getting started, ensure you have the following installed on your machine:
- Node.js (version 14 or later)
- npm (version 6 or later)
-
Clone the repository:
git clone https://github.com/plotlabs/codeReviewer.git
-
Navigate to the project directory:
cd codeReviewer
-
Install the dependencies:
npm install
-
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
-
-
Set up the database:
-
Run the Prisma migration to create the necessary tables:
npx prisma migrate dev
-
Generate the Prisma client:
npx prisma generate
-
-
Run the development server:
npm run dev
Alternatively, you can use
yarn
,pnpm
, orbun
:yarn dev # or pnpm dev # or bun dev
-
Go to http://localhost:3000