Coder Social home page Coder Social logo

ringcentral / ringcentral-engage-voice-embeddable-mobile-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 7.0 1.0 230 KB

Template project for Ringcentral engage voice embeddable mobile framework

License: MIT License

JavaScript 78.35% Shell 1.56% Stylus 10.31% Pug 9.78%

ringcentral-engage-voice-embeddable-mobile-template's Introduction

RingCentral Engage voice embeddable mobile template

Experimental Android/IOS apps template based on ringcentral-engage-voice-embeddable and cordova, you can use our ringcentral-embeddable-mobile-framework to create your own mobile app project in one line command.

Demo video

Download demo apps

https://github.com/ringcentral/ringcentral-engage-voice-embeddable-mobile/releases

Dev

Prerequisites

  • Install Nodejs and npm(recommend using nvm).
  • Install cordova: npm i -g cordova
  • Android: Follow the cordova guide to prepare for Android development: https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html
  • IOS: Follow the cordova guide to prepare for ISO development: https://cordova.apache.org/docs/en/latest/guide/platforms/ios/index.html, also requires paid apple developer account.
  • ImageMagick installed (Mac: brew install imagemagick, Debian/Ubuntu: sudo apt-get install imagemagick, Windows: See here, install "Legacy tools")
  • cordova-splash: npm install cordova-splash -g
  • cordova-icon: npm install cordova-icon -g
  • If you using emulator, you may need open the emulator first
  • A developer account in developer.ringcentral.com(free to register)
  • Create an app in developer.ringcentral.com, Create a RingCentral app with platform type - "Browser Based", and add permissions Edit Message, Edit Presence, Internal Messages, Read Accounts, Read Call Log, Read Contacts, Read Messages, Read Presence, RingOut, SMS, Call Control and VoIP Calling to your app, must graduate to deploy in production.
# install dependencies
npm run pre && npm i

# start proxy server
npm run proxy

# will get https://xxxx.ngrok.io -> localhost:6066
# Remember https://xxxx.ngrok.io as serverUrl

# create env file, then fill .env with serverUrl as RINGCENTRAL_APP_SERVER and RINGCENTRAL_CLIENT_ID and RINGCENTRAL_CLIENT_SECRET with your own app in developer.ringcentral.com, must be production app and web based with account permission.
# Set https://xxxx.ngrok.io/rc-auth as callback url in app setting
cp sample.env .env

# start server
npm start

# start client in another terminal
npm run c

# prepare cordova in another terminal
npm run prepare

# run Android app, make sure you have simulator or real android device ready
npm run a

# run IOS app, make sure you have real IOS device and paid developer ID ready,
# and open platforms/ios with xcode and config build an debug env
npm run i

Build apps

# build Android app
npm run build-android

# build IOS app
npmrun build-ios

Deploy

## build all files to deploy folder
npm run build-dist

Just deploy the deploy folder to your server/serverless or any platform.

Customize

License

MIT

ringcentral-engage-voice-embeddable-mobile-template's People

Contributors

zxdong262 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

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.