- NodeJS and Yarn should be installed
- For unit-testing we recommend having direnv installed.
yarnto install all dependencies
Setting up test environment
To run the tests you need to set the API server URL and a access token in your
./envrc-private variable first:
Recommendations for these tokens:
- Create a separate user (e.g.
<MyUserName>-triplydb-js) the TriplyDB instance you're using, as the unittest will thoroughly removes all datasets from this account before starting the test
- Create the tokens for that one, and use these tokens in
Running the tests
yarn buildtranspiles the typescript code, and stores the JS results in the
yarn devdoes the same, but watches for any changes to the typescript files and incrementally transpiles them when needed
To publish a new version:
npm version [patch|minor|major]
Building the TriplyDB-js binaries
TriplyDB-js is also available as a CLI. This CLI supports uploading files to TriplyDB from the command-line. To build the executable, run
yarn run package.
Run the stored executable (e.g.
./triplydb-linux) with a
--help argument to find the supported command line arguments.