teknologi-umum / pesto

Remote Code Execution Engine that lets you execute any piece of code on a remote server via REST API
Apache License 2.0
37 stars 7 forks source link

Node.js Client SDK #28

Closed aldy505 closed 1 year ago

aldy505 commented 2 years ago

Must be written in Typescript and live in /sdk/node/

Handles:

See: https://github.com/teknologi-umum/pesto/blob/master/rce/src/index.ts

ddouble-d commented 2 years ago

Hi @aldy505 So, I need to write a sample code for consuming/handling pesto API?

aldy505 commented 2 years ago

SDK is not a sample code. SDK is a client library to consume the API.

dannysheridan commented 2 years ago

Hey @aldy505 I can be of help here. I use Fern (www.buildwithfern.com) to code generate SDKs, including Node.js.

Here's an SDK I recently built for another organization: https://github.com/fern-primer/primer-node

Let me know if this is of interest for Teknologi Umum .

aldy505 commented 2 years ago

Hi @dannysheridan unless you can show a sample of code gen'd SDK that you're impling, I'm sorry, I'm not really interested on code gen'd SDK. I want to focus to the DX, not just a functional code that calls the API correctly.

dannysheridan commented 2 years ago

@aldy505 here's a TypeScript example app consuming a Node SDK generated by Fern: https://github.com/fern-primer/primer-node/blob/main/.sample-app/app.ts