Prerequisites
Before you begin, ensure you have the following installed:Node.js
Version 18.0 or higher required
pnpm
Recommended package manager
Git
For cloning the repository
PostgreSQL
Database for user data and rate limiting
Verify Prerequisites
Check that you have the correct versions installed:If you don’t have pnpm installed, you can install it globally:
Installation Steps
Clone the Repository
Clone the Repolyze repository from GitHub:Alternatively, if you’re contributing, fork the repository first:
Install Dependencies
Install all required dependencies using pnpm:This will install all dependencies listed in
package.json, including:- Next.js 16.1.0 (React 19.2.3)
- Prisma (database ORM)
- NextAuth (authentication)
- AI SDK packages
- UI components and styling libraries
The
postinstall script will automatically run prisma generate to create the Prisma client.Set Up Environment Variables
Copy the example environment file:Then configure your environment variables. See the Environment Variables page for detailed configuration.
Set Up the Database
Initialize your PostgreSQL database with Prisma:See the Database Setup page for detailed database configuration.
Start the Development Server
Launch the development server:The application will be available at
http://localhost:3000The dev server supports hot module replacement (HMR), so your changes will be reflected immediately.
Verify Installation
Open your browser and navigate to
http://localhost:3000. You should see the Repolyze homepage.Test the installation by analyzing a public repository:- Enter a GitHub repository URL (e.g.,
https://github.com/vercel/next.js) - Click “Analyze”
- Wait for the analysis to complete
Available Scripts
Once installed, you can use these npm scripts during development:Tech Stack Overview
Repolyze is built with modern technologies:| Category | Technologies |
|---|---|
| Framework | Next.js 16, React 19, TypeScript 5 |
| Database | PostgreSQL with Prisma ORM |
| Authentication | NextAuth.js 5 (Beta) |
| Styling | Tailwind CSS 4, shadcn/ui |
| Animation | Framer Motion, GSAP |
| Diagrams | Mermaid |
| PDF Export | jsPDF |
| AI | OpenRouter AI SDK |
Troubleshooting
Node version error
Node version error
pnpm not found
pnpm not found
Install pnpm globally:Or use npm/yarn instead:
Prisma client errors
Prisma client errors
Regenerate the Prisma client:If issues persist, delete the generated client and regenerate:
Port 3000 already in use
Port 3000 already in use
Change the port by setting the
PORT environment variable:Database connection errors
Database connection errors
Verify your See the Database Setup page for more details.
DATABASE_URL in .env.local is correct and PostgreSQL is running:Next Steps
Environment Variables
Configure API keys and environment settings
Database Setup
Set up PostgreSQL and run migrations
Project Architecture
Understand the codebase organization
Contributing
Learn how to contribute to Repolyze