Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

README.md

46 lines752 Bytes

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