Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build an AI GitHub PR Reviewer: Next.js 16, tRPC & Prisma
New
100 students

Build an AI GitHub PR Reviewer: Next.js 16, tRPC & Prisma

Build an AI GitHub PR reviewer with NextJS 16, tRPC, Prisma, Better Auth and Inngest, then deploy it with Docker.
Last updated 11/2026
English

What you'll learn

  • Build a production-ready AI GitHub PR reviewer with Next.js 16, tRPC, Prisma and PostgreSQL from scratch
  • Add secure sign-in with Better Auth and connect GitHub repositories to list and analyze pull requests
  • Build a PR diff viewer and review UI with risk scores, highlighted issues and AI-suggested fixes
  • Run background jobs with Inngest and handle GitHub webhooks to review pull requests automatically
  • Deploy the full app to a real Ubuntu VPS with Docker Compose, Caddy and HTTPS

Course content

4 sections • 14 lectures • 8h 45m total length
  • Intro and live demo of the AI GitHub PR reviewer2:58

    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.

  • Project setup with Next.js 16 App Router5:32

    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.

  • PostgreSQL and Prisma database setup6:49

    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.

  • Setting up tRPC and TanStack Query27:41

    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.

  • Authentication with Better Auth1:00:45

    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.

Requirements

  • Basic JavaScript or TypeScript and React knowledge
  • Node.js and a code editor such as VS Code installed on your computer
  • A free GitHub account (a VPS is only needed for the final deployment lecture)

Description

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.

Who this course is for:

  • JavaScript and TypeScript developers who want to build a real full stack AI app with Next.js
  • Developers who want to learn tRPC, Prisma, Better Auth and Docker deployment in one project
  • Engineers who want to ship an AI code review tool to a production VPS with HTTPS