Discover how NestJS and tRPC are revolutionizing API development with type-safe APIs, faster workflows, and zero boilerplate. In this video, we dive into why this combination is a game-changer for developers building scalable and maintainable backend systems.
Includes integration with a Next.js UI. It’s the ultimate end-to-end guide for modern web development.
Length 1:54:43
Captions English (Generated), Spanish (Auto-translated), French (Auto-translated), Korean (Auto-translated), Portuguese (Auto-translated), Vietnamese (Auto-translated) #nestjs #trpc #typescript #api #web development #turborepo #nextjs #fullstack #schema validation
0:00 Hey, everyone. Today, we're diving into a game changer for your 0:04 NestJS APIs. What if I told you that with 0:08 NestJS and tRPC, you could build type-safe 0:11 APIs without ever writing a single line of REST or 0:15 GraphQL schema? Say goodbye to the days of writing 0:19 request and response DTOs and duplicating them between your 0:23 server and client. Instead, by using tRPC and 0:26 NestJS, our TypeScript types are gonna be shared directly 0:30 between the front end and back end, meaning we have less bugs, less 0:34 duplication, and more confidence in our code. 0:37 By adding NestJS into the mix, we're getting a scalable module 0:41 battle-tested application that's gonna totally transform the way you build 0:45 APIs. You can see here we're looking at tRPC 0:48 panel, which 0:49 is auto-generated documentation for all the tRPC routes we're gonna 0:53 build in this application. So we're gonna implement full 0:56 CRUD functionality and be able to actually execute all 1:00 these operations on our server with this auto-generated documentation 1:04 page, another amazing benefit of tRPC. 1:08 We're gonna be utilizing the open source NestJS tRPC library, 1:12 which is gonna integrate tRPC into our application with very 1:16 little code. Let's go ahead and get started with learning how to use 1:20 tRPC and NestJS to start changing the way you 1:24 build your applications. 1:29 All right, so let's go ahead and get started with initializing our 1:31 project where 1:32 we're gonna integrate tRPC. 1:35 So let's get started by using the Nest CLI to actually initialize our 1:39 project. If you don't have the Nest CLI already 1:41 available, simply 1:43 run npm install -g for global 1:46 @nestjs/cli@latest to get the latest version. 1:50 With the NestJS CLI available, we can go ahead and run nest new, 1:54 and you can call your project whatever you'd like. 1:56 I'll go ahead and call it nestjs-trpc. 2:00 I'll also go ahead and choose pnpm as my package manager,
The rest of the transcript is for members.
Sign in