Giter Club home page Giter Club logo

meetingsdk-react-sample's Introduction

Zoom Meeting SDK React sample

Use of this sample app is subject to our Terms of Use.

This repo is a React app generated via Create React App that uses the Zoom Meeting SDK to start and join Zoom meetings and webinars.

Zoom Meeting SDK Client View

Installation

To get started, clone the repo:

$ git clone https://github.com/zoom/meetingsdk-react-sample.git

Setup

  1. Once cloned, navigate to the meetingsdk-react-sample directory:

    $ cd meetingsdk-react-sample

  2. Then install the dependencies:

    $ npm install

  3. Open the meetingsdk-react-sample directory in your code editor.

  4. Open the src/App.js file, and enter values for the variables:

    NEW: To use the Component View, replace App.js with App-New.js. (The leaveUrl is not needed). Also, uncomment the Component View CSS tags and comment out the Client View CSS in public/index.html.

    Variable Description
    authEndpoint Required, your Meeting SDK auth endpoint that securely generates a Meeting SDK JWT. Get a Meeting SDK auth endpoint here.
    sdkKey Required, your Zoom Meeting SDK Key or Client ID for Meeting SDK app type's created after February 11, 2023. You can get yours here.
    meetingNumber Required, the Zoom Meeting or webinar number.
    passWord Optional, meeting password. Leave as empty string if the meeting does not require a password.
    role Required, 0 to specify participant, 1 to specify host.
    userName Required, a name for the user joining / starting the meeting / webinar.
    userEmail Required for Webinar, optional for Meeting, required for meeting and webinar if registration is required. The email of the user starting or joining the meeting / webinar.
    registrantToken Required if your meeting or webinar requires registration.
    zakToken Required to start meetings or webinars on external Zoom user's behalf, the authorized Zoom user's ZAK token. The ZAK can also be used to join as an authenticated participant.
    leaveUrl Required for Client View, the url the user is taken to once the meeting is over.

    Example:

    var authEndpoint = 'http://localhost:4000'
    var sdkKey = 'abc123'
    var meetingNumber = '123456789'
    var passWord = ''
    var role = 0
    var userName = 'React'
    var userEmail = ''
    var registrantToken = ''
    var zakToken = ''
    var leaveUrl = 'http://localhost:3000'
  5. Save App.js.

  6. Run the app:

    $ npm start

Usage

  1. Navigate to http://localhost:3000 and click "Join Meeting".

    Client View

    Zoom Meeting SDK Client View

    Component View

    Zoom Meeting SDK Component View

    Learn more about Gallery View requirements and see more product screenshots.

Deployment

The React Sample App can be easily deployed to GitHub Pages, or another static web hosting service, like an AWS S3 bucket.

GitHub Pages

  1. Create a repo on GitHub.

  2. Add the remote to your project:

    $ git remote add origin GITHUB_URL/GITHUB_USERNAME/GITHUB_REPO_NAME.git

  3. Open the package.json file and on line 5 replace the homepage value "" with your GitHub repo name with a slash in front like this: "/GITHUB_REPO_NAME".

  4. Build your project:

    $ npm run build

  5. Rename the build folder to docs

  6. Git add, commit, and push your project:

    $ git add -A

    $ git commit -m "deploying to github"

    $ git push origin master

  7. On GitHub, in your repo, navigate to the "settings" page, scroll down to the "GitHub Pages" section, and choose the "master branch/docs folder" for the source.

  8. Now your project will be deployed to https://GITHUB_USERNAME.github.io/GITHUB_REPO_NAME.

Other Static Web Hosting

  1. Build your project:

    $ npm run build

  2. Deploy the complied /build directory to a static web hosting service, like an AWS S3 bucket.

Advanced Deployment

For more advanced instructions on deployment, see the React Deployment docs.

Need help?

If you're looking for help, try Developer Support or our Developer Forum. Priority support is also available with Premier Developer Support plans.

meetingsdk-react-sample's People

Contributors

tommygaessler avatar dependabot[bot] avatar ylkjick532428 avatar

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.