
In this introduction you see a live demo of the finished AI GitHub PR reviewer built with NextJS 16, tRPC, Prisma, PostgreSQL and Better Auth. You will learn what the app does: connect GitHub repositories, list pull requests, compute risk scores, highlight issues in PR diffs and suggest AI-powered fixes. We also cover the full tech stack and the VPS deployment you will ship at the end of the course.
Set up the project from scratch with NextJS 16 and the App Router. You will create the project structure, install the dependencies and prepare the foundation for tRPC, Prisma and authentication used in the AI GitHub PR reviewer.
Set up the PostgreSQL database and connect it with Prisma ORM. You will define the schema, run migrations and prepare the data layer for the AI GitHub PR reviewer.
Set up tRPC with TanStack Query in a NextJS App Router project for end-to-end type safety. You will create the tRPC router, context and procedures and call them from React components with full TypeScript types.
Add authentication to the app with Better Auth, Prisma and PostgreSQL. You will configure sessions, sign in and sign out flows and protect pages and tRPC procedures so only signed-in users can use the AI PR reviewer.
Connect GitHub repositories to your app. You will integrate the GitHub API so users can link their account, list and select repositories to review, building the foundation for the pull request features in the AI GitHub PR reviewer.
Fetch and list pull requests from GitHub repositories. You will build the tRPC procedures and the UI that show open pull requests with their details, ready for AI-powered code review.
Build a PR diff viewer in React that renders changed files and code diffs from a GitHub pull request. You will show changes line by line so issues from the AI review can be highlighted directly in the diff.
Run long tasks reliably with Inngest background jobs. You will set up Inngest in a NextJS app, create functions and trigger pull request reviews in the background instead of blocking the request.
Build the AI review service that analyzes a pull request, computes a risk score, finds issues and suggests AI-powered fixes. You will connect it to Inngest so each review runs as a background job.
Build the review result UI that shows the risk score, issues highlighted in the PR diff and AI suggested fixes. You will wire the UI to tRPC and TanStack Query to display the review results.
Add review history so users can look back at previous AI reviews of their pull requests. You will store review results in PostgreSQL with Prisma and build the history UI.
Handle GitHub webhooks so pull requests are reviewed automatically when they are opened or updated. You will create the webhook endpoint and trigger the review background job.
Deploy the AI GitHub PR reviewer to a real Ubuntu VPS using Docker and Docker Compose, with Caddy providing HTTPS. You will configure the server, containers, environment variables and domain and ship a production-ready app.
Learn how to build and deploy a production-ready AI GitHub PR reviewer from scratch with NextJS 16, tRPC, Prisma, PostgreSQL and Better Auth. In this hands-on full stack course you build a real AI code review platform that connects to GitHub repositories, lists and analyzes pull requests, computes risk scores, highlights issues directly in PR diffs and suggests AI-powered fixes.
You will set up the NextJS 16 App Router project, design the database with Prisma and PostgreSQL, add end-to-end type safety with tRPC and TanStack Query, and secure the app with Better Auth. Then you integrate the GitHub API, build a pull request list and a PR diff viewer, and create an AI review service with a clean review results UI and review history.
To run reviews reliably you will use Inngest background jobs and handle GitHub webhooks so pull requests are reviewed automatically. Finally you deploy the whole system to a real Ubuntu VPS with Docker, Docker Compose and Caddy for HTTPS, so your AI code review tool is live on the internet.
By the end of this course you will have a complete AI PR reviewer project you can extend, show in your portfolio or use as the base for your own SaaS. It is ideal for JavaScript and TypeScript developers who know the basics of React and want to learn modern full stack development with NextJS 16, tRPC, Prisma, Better Auth, Inngest and Docker.
Topics covered: AI code review, GitHub API, pull request automation, GitHub webhooks, background jobs, Docker deployment and VPS hosting with HTTPS.