This template demonstrates using the Tempo
remote procedure call framework to add real-time, end-to-end typesafe APIs with a Node.js HTTP server.
index.ts
is the content of the server script.
Code generation is handled by Bebop
and you can find an example schema in greeter.bop
.
The service is implemented in greeter.ts
.
To create a my-project
directory using this template, run:
$ git clone https://github.com/betwixt-labs/template-worker-tempo.git my-project
If you wish to generate code from your schemas run:
$ npm run build:schemas
# or
$ yarn build:schemas
# or
$ pnpm run build:schemas