Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tjcchen/trpc-example
trpc sample code
https://github.com/tjcchen/trpc-example
Last synced: about 22 hours ago
JSON representation
trpc sample code
- Host: GitHub
- URL: https://github.com/tjcchen/trpc-example
- Owner: tjcchen
- Created: 2024-07-01T10:05:03.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-01T10:11:15.000Z (7 months ago)
- Last Synced: 2025-02-07T02:03:11.151Z (1 day ago)
- Language: TypeScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js + tRPC
This example shows how you can make a typed query using a minimal implementation of tRPC following [`this as a reference`](https://trpc.io/docs/client/nextjs).
## Setup
```bash
npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-minimal-starter trpc-minimal-starter
cd trpc-minimal-starter
npm i
npm run dev
```## Development
### Start project
```bash
npm run dev # starts next.js
```