Installation
Add tRPC support to your existing NestJS application in just a few steps.
Prerequisites
This guide assumes you already have a working NestJS application. If you don’t, follow the NestJS documentation to create one first.
Installation
Core Package
Add the NestJS tRPC package to your existing project:
Required Dependencies
Install the tRPC server and validation library:
Note: @nestjs/common
and @nestjs/core
are already installed in your NestJS project.
Next Steps
Now that you have NestJS tRPC installed:
- Configuration - Configure the TRPCModule in your app
- Create Your First Router - Build your first type-safe API
- Understanding Context - Learn about request context and dependency injection
Getting Help
Last updated on: