GithubHelp home page GithubHelp logo

isabella232 / engage-voice-embeddable Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ringcentral/engage-voice-embeddable

0.0 0.0 0.0 13.83 MB

(Beta)RingCentral Engage Voice Embeddable widget

Home Page: https://ringcentral.github.io/engage-voice-embeddable/

JavaScript 23.25% Shell 0.27% TypeScript 67.69% HTML 6.68% SCSS 2.11%

engage-voice-embeddable's Introduction

Engage Voice Embeddable (Beta)

Build Status

Introduction

This is an out-of-the-box embeddable web application that help developers to integrate RingCentral Engage Voice services to their web applications with few code.

Visit Online

Visit website in GitHub pages.

demo

Inject

<script>
  (function() {
    var rcs = document.createElement("script");
    rcs.src = "https://ringcentral.github.io/engage-voice-embeddable/adapter.js";
    var rcs0 = document.getElementsByTagName("script")[0];
    rcs0.parentNode.insertBefore(rcs, rcs0);
  })();
</script>

Documents

Awesome Embeddable projects

  • RingCentral Engage Voice Embeddable phone for Hubspot CRM - repo

Contribution and Development

Clone the code

$ git clone https://github.com/ringcentral/engage-voice-embeddable.git

Create a free RingCentral app

  1. Create a RingCentral developer free account
  2. Create a RingCentral app with platform type - "Browser Based"
  3. Add permissions Read Accounts to your app.
  4. Add redirect uri http://localhost:8080/redirect.html to your app settings.

Create environment variables file in project root path

Create .env file in project root path:

RINGCENTRAL_CLIENT_ID=your_ringcentral_app_client_id
RINGCENTRAL_SERVER=https://platform.ringcentral.com

ENGAGE_VOICE_AUTH_SERVER=https://engage.ringcentral.com

Notice: Now the Engage Voice service only is supported on production environment. Please make sure your key is graduated into RingCentral production environment.

Start development server

We assume you have pre-installed node.js >= 10 and yarn.

It is recommended to use yarn instead of npm. We have yarn.lock file in source code to lock dependence version. With yarn, we can install dependencies with correct version that work well with this project.

$ yarn       # use yarn to install dependencies
$ yarn start # start a webpack dev server

Open site: 'http://localhost:8080/' on browser

Deploy on production

If you create pull request to this repository and get merged, CI will deploy it to this repository's github page automatically. But for something that customized, you can deploy it to your own web space, such as your github page.

  1. Update .env file in production environment
  2. Run command to compile code and build release
$ yarn build --hosting-url your_host_url

Please replace your_host_uri with your own web host address, such as https://ringcentral.github.io/engage-voice-embeddable.

  1. Upload all files in build/rc folder to your web space. And visit it in browser.

engage-voice-embeddable's People

Contributors

embbnux avatar dependabot[bot] 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.