This repository contains the TypeSpec API definitions for Clustron.
- Node.js and npm
- TypeSpec compiler (
@typespec/compiler
)
# Install TypeSpec compiler globally
npm install -g @typespec/compiler
# Install project dependencies
tsp install
The project includes a Makefile with the following commands:
make format
make compile
make clean
make
The compilation process generates OpenAPI specification in the tsp-output/schema/openapi.yaml
file.
This project includes GitHub Actions workflow that:
- Checks TypeSpec formatting
- Compiles TypeSpec to OpenAPI
- Generates and deploys Swagger UI documentation to GitHub Pages