Code Monkey home page Code Monkey logo

react-sample-app's Introduction

Logo

React Sample App

A basic project demonstrating how you can integrate **dyte** in your React app.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

A basic project demonstrating how you can integrate dyte in your React app.

very-basic

Choose from a list of available meeting rooms, or create a new Dyte meeting and join as a participant or a host.

Built With

Structure

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

Getting Started

Please make sure you have an organization ID and API Key for your application. These can be obtained from the developer portal.

Installation

  1. Clone the repo
git clone https://github.com/dyte-in/react-sample-app.git
  1. Install NPM packages
npm install
  1. Create an .env file with your credentials. Use .env.example as a template.
cp .env.example .env
  1. Run the application
npm start

Application Flow

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.

Usage

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.

License

Distributed under the MIT License. See LICENSE for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.