This application demonstrates the DataTrack feature in twilio-video.js. With it, you can connect to a Room and draw on a shared "whiteboard" with other Participants. Try it out at draw-with-twilio.appspot.com.
Before we begin, we need to collect three configuration values in order to run the application:
- Account SID: Your primary Twilio account identifier; find this in the console here
- API Key SID: Used to authenticate; generate one here
- API Key Secret: Used to authenticate; just like the above, you'll get one here
Next, create a configuration file for the application:
cp .env.template .env
Edit .env
with the configuration, and paste in the configuration values we
gathered above. Finally, run the following:
npm install
npm run build
npm start
Then, navigate to localhost:9000.