Javascript SDK Implementation
Demo App

Samvyo Demo App

To get started with the Samvyo SDK, you can either set up and integrate the SDK into your application from scratch or clone our demo app to skip the initial setup steps. Follow these instructions to get started quickly.

Clone the Demo App

  1. Clone the demo app repository from GitHub:
git clone https://github.com/Centedge/samvyo-sdk-demo-app.git
  1. Navigate to the cloned directory:
cd samvyo-sdk-demo-app
  1. Set Up Environment Variables:
  • Modify the file named .env.sample to .env in the root directory of the project.
  1. Get Access and Secret Access Keys:
  • Open the Samvyo dashboard (opens in a new tab).
  • If you don’t have an account, create one by signing up.
  • Log in to your account and navigate to the "Org Settings" >> "API Keys" section.
  • Generate your access key and secret access key.
  1. Update the .env File:
  • Modify the following lines in your .env file, replacing ACCESS_KEY and SECRET_ACCESS_KEY with your actual access key and secret access key:
ACCESS_KEY = your_access_key;
SECRET_ACCESS_KEY = your_secret_access_key;
  1. Save the .env file.

  2. Start the Demo App:

  • Install the dependencies:
npm install
  • Start the development server:
npm start
  • Open your browser and navigate to http://localhost:3300/.
  1. Join a Room:
  • Enter the roomId and peerName in the input fields and click the Join Room button.
  • You should be able to see the call running.
  1. Invite Others:
  • To invite others to the room, share the URL with them. They can join by entering the same roomId after deployment.

Summary

By cloning the demo app, you can quickly get started with Samvyo without the hassle of setting everything up from scratch. This allows you to focus on making modifications and building your application using the SDK features. If you prefer to set up and integrate the SDK into your application from scratch, you can refer to the events and methods documentation and follow the next steps for a detailed explanation.