An example of a possible adapter for using trpc-openapi to serve the trpc routes in Fastify.
The actual adapter implementation is in src/fastify.ts
.
- Clone the repo.
- Install the node_modules,
npm install
. - Run the dev server,
npm run dev
. - View openapi doc at http://localhost:3000/openapi.json and use the SwaggerUI at http://localhost:3000/docs.