Skip to content

cnrstvns/trpc-openapi

Repository files navigation

TRPC OpenAPI Demo

What's inside?

This turborepo uses Yarn as a package manager. It includes the following packages/apps:

Apps and Packages

  • api: a TRPC api hosted with Express
  • web: a Next.js app that demonstrates the functionality exported by the core TRPC routes
  • openapi: a package that uses OpenAPI Generator to generate a Typescript request client for the REST API
  • eslint-config-custom: eslint configurations (includes eslint-config-next, eslint-config-prettier, and eslint-config-turbo)
  • tsconfig: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Utilities

This turborepo has some additional tools already setup for you:

Build

To build all apps and packages, run the following command:

cd my-turborepo
yarn run build

Develop

To develop all apps and packages, run the following command:

cd my-turborepo
yarn run dev