This example demonstrates how to connect to the Viam app and make calls to it.
Create a .env
file with the following content and add the appropriate values for your device. The easiest way to get the values is through app.viam.com:
VITE_ORG_ID=...
VITE_HOST=...
VITE_API_KEY_ID=...
VITE_API_KEY_SECRET=...
Install the required packages:
npm install
Run npm run dev
and visit localhost:5173
in a browser.