A basic project demonstrating how you can integrate **dyte** in your React app.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
A basic project demonstrating how you can integrate dyte in your React app.
Choose from a list of available meeting rooms, or create a new Dyte meeting and join as a participant or a host.
React App structure:
├── src
│ ├── 📁 container // contains main screen page component.
│ ├── 📁 exampleComponent // sample example components
│ ├── App.tsx // page routes are defined here
│ ├── index.tsx // application js entry point
Please make sure you have an organization ID and API Key for your application. These can be obtained from the developer portal.
- Clone the repo
git clone https://github.com/dyte-in/react-sample-app.git
- Install NPM packages
npm install
- Create an
.env
file with your credentials. Use.env.example
as a template.
cp .env.example .env
- Run the application
npm start
On opening http://localhost:3000
in your browser, the client will first make an api call to check list of available meeting rooms. If not, then you can create a meeting room by entering a title and then click on create room button. The newly created room can be seen under the meeting room list section.
You can select the example that you want to test from the select example section. You can also refer the example component code with the path provided.
Finally, you can test the example by joining any meeting room as a host or as a participant. On clicking the button, a new user will be created by making an api call and meeting room will be launched.
All mandatory credentials of a user (i.e. roomname, user authtoken etc.) that are required to launch the meetings are stored in session storage.
Choose from a list of examples and then join on any meeting room to test it live.
You can also refer the example component code with the path provided.
For documentation on APIs and client SDKs, please refer to our official documentation.
Distributed under the MIT License. See LICENSE
for more information.