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
- Clone the demo app repository from GitHub:
git clone https://github.com/Centedge/samvyo-sdk-demo-app.git
- Navigate to the cloned directory:
cd samvyo-sdk-demo-app
- Set Up Environment Variables:
- Modify the file named
.env.sample
to.env
in the root directory of the project.
- 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.
- Update the
.env
File:
- Modify the following lines in your
.env
file, replacingACCESS_KEY
andSECRET_ACCESS_KEY
with your actual access key and secret access key:
ACCESS_KEY = your_access_key;
SECRET_ACCESS_KEY = your_secret_access_key;
-
Save the
.env
file. -
Start the Demo App:
- Install the dependencies:
npm install
- Start the development server:
npm start
- Open your browser and navigate to
http://localhost:3300/
.
- Join a Room:
- Enter the
roomId
andpeerName
in the input fields and click the Join Room button. - You should be able to see the call running.
- 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.