Skip to content

Latest commit

 

History

History
26 lines (13 loc) · 652 Bytes

README.md

File metadata and controls

26 lines (13 loc) · 652 Bytes

D-ID Agents SDK Demo - Vite & Vanilla JavaScript

In the terminal, navigate to this project folder and run the following commands:

  • npm init

  • npm i vite

  • npm i @d-id/client-sdk

In the created package.json file, add the following to the scripts object:

  • "dev": "vite --port 3000"

Fetch the data-client-key and the data-agent-id as explained on the Agents SDK Overview Page.
Paste these into their respective variables at the top of the main.js file and save.

In the terminal, run npm run dev

Open http://localhost:3000/