AI-powered code review tool that helps developers analyze and improve their code quality with AI models.
- AI-powered code review
- Authentication with NextAuth
- API key management
- Team collaboration
- Stripe payment integration
- Webhooks for Stripe events
Clone the repository:
git clone https://github.com/crysolabs/Ai-code-reviewer-modelslab.git
cd Ai-code-reviewer-modelslab
Install dependencies:
npm install
Create a .env
file in the root directory and add the following variables:
# NextAuth
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your-nextauth-secret
# Database
DATABASE_URL=your-mongodb-connection-string
# OAuth Providers
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
# Stripe
STRIPE_SECRET_KEY=your-stripe-secret-key
STRIPE_WEBHOOK_SECRET=your-stripe-webhook-secret
NEXT_PUBLIC_STRIPE_PRO_PRICE_ID=your-stripe-pro-price-id
NEXT_PUBLIC_STRIPE_TEAM_PRICE_ID=your-stripe-team-price-id
NEXT_PUBLIC_APP_URL=http://localhost:3000
# MODELS_LAB
MODELS_LAB_API_KEY=your-modelslab-api-key
Start the development server:
npm run dev
dev
: Start the development serverbuild
: Build the projectstart
: Start the production serverlint
: Run ESLint
api/auth
- Authentication (NextAuth)api/review
- Code review endpointapi/webhooks/stripe
- Stripe webhook handler
This project is licensed under the MIT License.