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

https://github.com/jellydn/trpc-demo

Monorepo for tRPC v9 Demo Apps
https://github.com/jellydn/trpc-demo

fastify nextjs trpc turborepo

Last synced: 12 days ago
JSON representation

Monorepo for tRPC v9 Demo Apps

Awesome Lists containing this project

README

        

# Welcome to trpc-demo 👋

![Version](https://img.shields.io/badge/version-0.0.1-blue.svg?cacheSeconds=2592000)
![Prerequisite](https://img.shields.io/badge/npm-%3E%3D7.0.0-blue.svg)
![Prerequisite](https://img.shields.io/badge/node-%3E%3D14.0.0-blue.svg)
[![Twitter: jellydn](https://img.shields.io/twitter/follow/jellydn.svg?style=social)](https://twitter.com/jellydn)

> Monorepo for tRPC Demo Apps

[![tRPC - End-to-end typesafe APIs made easy](https://img.youtube.com/vi/rz1ZGV82i34/0.jpg)](https://www.youtube.com/watch?v=rz1ZGV82i34)

## Prerequisites

- npm >=7.0.0
- node >=14.0.0

## Features

- [tRPC](https://trpc.io/): end-to-end typesafe APIs made easy
- [Turborepo](https://turborepo.org/): high-performance build system for JavaScript and TypeScript codebases.
- [Fastify](https://www.fastify.io/): fast and low overhead web framework, for Node.js
- [Vite](https://vitejs.dev/): next Generation Frontend Tooling
- [NextJs](https://nextjs.org/): the React Framework for Production

## Why tRPC?

It's neat, right? :)

![https://storage.googleapis.com/trpc/trpcgif.gif](https://storage.googleapis.com/trpc/trpcgif.gif)

## Install

```sh
yarn install
```

## Usage

```sh
yarn dev
```

### Screenshot

![https://gyazo.com/b749863e76c6fde69bb88f22125b33ca.gif](https://gyazo.com/b749863e76c6fde69bb88f22125b33ca.gif)

## Run tests

```sh
yarn test
```

## Apps and Packages

- `api`: a [fastify api](https://github.com/jellydn/fastify-starter) app
- `web`: another [Next.js](https://nextjs.org) app
- `react-app`: a [react](https://github.com/jellydn/new-web-app) app
- `ui`: a stub React component library shared by both `web` and `docs` applications
- `config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `tsconfig`: `tsconfig.json`s used throughout the monorepo

Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).

## Useful Links

Learn more about the power of Turborepo:

- [Pipelines](https://turborepo.org/docs/features/pipelines)
- [Caching](https://turborepo.org/docs/features/caching)
- [Remote Caching (Beta)](https://turborepo.org/docs/features/remote-caching)
- [Scoped Tasks](https://turborepo.org/docs/features/scopes)
- [Configuration Options](https://turborepo.org/docs/reference/configuration)
- [CLI Usage](https://turborepo.org/docs/reference/command-line-reference)

## Author

👤 **Dung Huynh**

- Website: https://productsway.com/
- Twitter: [@jellydn](https://twitter.com/jellydn)
- Github: [@jellydn](https://github.com/jellydn)

## Show your support

Give a ⭐️ if this project helped you!

---

_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_