Skip to content

speakeasy-api/speakeasy-trpc-example

Repository files navigation

Speakeasy Logo

Speakeasy tRPC OpenAPI Example

This example tRPC app demonstrates Speakeasy-recommended practices for generating clear OpenAPI specifications and SDKs.

Prerequisites

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.

Installation

To install the application on your local machine:

  1. Clone the repository:
git clone https://github.com/speakeasy-api/speakeasy-trpc-example.git
  1. Navigate into the directory:
cd speakeasy-trpc-example
  1. Install all dependencies for the application using Yarn:
npm install
  1. Install Speakeasy CLI:
brew install speakeasy-api/homebrew-tap/speakeasy

Running the application

Working with the OpenAPI specification

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

License

This project is licensed under the terms of the Apache 2.0 license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published