This example tRPC app demonstrates Speakeasy-recommended practices for generating clear OpenAPI specifications and SDKs.
You need to have Node.js installed on your system to run this project.
To generate an SDK, you'll also need the Speakeasy CLI installed, or use the Speakeasy dashboard.
To install the application on your local machine:
- Clone the repository:
git clone https://github.com/speakeasy-api/speakeasy-trpc-example.git
- Navigate into the directory:
cd speakeasy-trpc-example
- Install all dependencies for the application using Yarn:
npm install
brew install speakeasy-api/homebrew-tap/speakeasy
To generate an OpenAPI spec in YAML format, run:
npm run generate-openapi
Additionally, you can generate both the specification file and a TypeScript SDK for your API using:
npm run generate-openapi-and-sdk
This project is licensed under the terms of the Apache 2.0 license.