- Node.js version 10 or greater
- Git client
- In a new directory, clone this repository and
cd
into thequickstart/node
directory by entering the following commands:
git clone -b main https://github.com/twelvelabs-io/examples && cd quickstart/node
- Install dependencies:
npm install
- Set up your environment variables:
export API_KEY=<YOUR_API_KEY> && export API_URL=https://api.twelvelabs.io/v1
- Open the
quickstart.js
file in a plain-text editor and replace the following placeholders surrounded by<>
with your values:
- <YOUR_INDEX_NAME>
- <YOUR_FILE_PATH>
- Run the program:
node quickstart.js