@triply/client.js v2.0.3
TriplyDB javascript client
Running tests
Setting up test environment
To run the tests you need to set the API server URL and a access token in your ./envrc-local
variable first: UNITUNITTEST_TOKEN_READ
, UNITUNITTEST_TOKEN_WRITE
, UNITUNITTEST_TOKEN_ACCOUNT
and UNITTEST_API_URL
.
Recommendations for these tokens:
- Create a separate user (e.g.
<MyUserName>-triplydb-js
) on your local instance or on nightly, 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
./envrc-local
Running the tests
yarn run test
.
Releasing new version
To release new version, use:
yarn version <--patch|--minor|--major>
yarn publish
Installing TriplyDB-js
git clone $(repo-url) $(dir)
cd $(dir)
#if using yarn:
yarn install
#if using npm:
npm install
Building your local code
Write your own code in a *.ts
file:
yarn run build
Now you have a *.js
file that you can use.
Using TriplyDB-js
TODO
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago