Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 806 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 806 Bytes

Node.js quickstart

Prerequisites

Install

  1. In a new directory, clone this repository and cd into the quickstart/node directory by entering the following commands:
git clone -b main https://github.com/twelvelabs-io/examples && cd quickstart/node
  1. Install dependencies:
npm install

Run the quicksart

  1. Set up your environment variables:
export API_KEY=<YOUR_API_KEY> && export API_URL=https://api.twelvelabs.io/v1
  1. 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>
  1. Run the program:
node quickstart.js