TypeSpec Todo
A todo application written in using TypeSpec.
The server is implemented in as much of an API-first way as possible. To start the server, run:
> npm install
> npm run build
> npm run start
Interesting features:
- TypeSpec, generating JSON Schema, OpenAPI3, and clients in multiple languages.
- Docs are exposed under the
/docs
endpoint.
- TypeScript types are generated from JSON Schema using
json-schema-to-typescript
.
- Routes are attached and requests/responses are validated based on the OpenAPI using
fastify-openapi-glue
.
Prerequisites
- Install node.
- Install TypeSpec
npm install -g @typespec/compiler
- For Python codegen, install Python and pip.
- For Java codegen, install the JDK 17 or higher.
- For CSharp codegen, install the .NET SDK version 8 or higher.