Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```