Prerequisites
- Node.js (version 14+) and npm installed
- A terminal or command prompt
What you'll achieve By the end of this guide, you will have the TerminusDB JavaScript client installed and ready to use in your project.
Requirements
Node.js version 18+ if using the TerminusDB client library as a Node.js package
Installation
The TerminusDB JavaScript client library can be used either as a Node.js package or as a script that runs in the browser.
NPM Package
If you don't already have Node.js installed, install it first. node-install
To install the terminusdb-client package as a dependency in an existing package, run:
npm install --save terminusdbThis command updates your package.json.
Script
To use the terminusdb-client script on a webpage sourced from a CDN, add this to your HTML:
<script src="https://unpkg.com/terminusdb/dist/terminusdb-client.min.js"></script>Alternatively, you can download the latest terminusdb-client.min.js, add it to your sources, and use that in the <script> instead.