Open History to see the last commit
1# TanStack Router - tRPC Integration Example
2β
3An example demonstrating integration with tRPC for type-safe APIs.
4β
5- [TanStack Router Docs](https://tanstack.com/router)
6- [tRPC Documentation](https://trpc.io)
7β
8## Start a new project based on this example
9β
10To start a new project based on this example, run:
11β
12```sh
13npx gitpick TanStack/router/tree/main/examples/react/with-trpc with-trpc
14```
15β
16## Getting Started
17β
18Install dependencies:
19β
20```sh
21pnpm install
22```
23β
24Start the development server:
25β
26```sh
27pnpm dev
28```
29β
30## Build
31β
32Build for production:
33β
34```sh
35pnpm build
36```
37β
38## About This Example
39β
40This example demonstrates:
41β
42- tRPC integration with TanStack Router
43- Type-safe API calls
44- End-to-end type safety
45- Server and client setup
46- Procedure definitions