Skip to content

bterlson/typespec-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Install node.
  2. Install TypeSpec npm install -g @typespec/compiler
  3. For Python codegen, install Python and pip.
  4. For Java codegen, install the JDK 17 or higher.
  5. For CSharp codegen, install the .NET SDK version 8 or higher.

About

A todo application API specified in TypeSpec

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published