A barebone example for PromptOn API SDK in typescript / node
Please note this is work in progress. Some changes in the making to improve dev UX of the SDK.
It also means this example might not work with latest API and prompton npm package version. Just raise an issue if you have any problem.
Prerequisites:
-
PromptOn Api user account on our hosted environment
Drop an email for early access: hello@prompton.ai
or
-
Local PromptOn Api server - see PromptOn API
Repo & yarn:
gh repo clone PromptOn/client-example-type-script-node
npm install yarnInstall just
- Mac:
brew install just - Just install on other platforms
Create your local .env See: .env.example
Install packages:
just installRun it:
just run