GithubHelp home page GithubHelp logo

isabella232 / infobip-rtc-showcase Goto Github PK

View Code? Open in Web Editor NEW

This project forked from infobip/infobip-rtc-showcase

0.0 0.0 0.0 3.1 MB

JavaScript 33.34% HTML 5.59% CSS 0.35% TypeScript 15.04% Kotlin 17.62% Java 7.43% Swift 14.66% Ruby 0.91% Starlark 0.48% Objective-C 4.59%

infobip-rtc-showcase's Introduction

Token Application - Node.js

You need to have Node.js installed on your computer (https://nodejs.org/en/).

Create config.json file in the ./token/node project directory, and fill it with data:

{  
  "HTTP_PORT": 8080,
  "INFOBIP_API_HOST": "api.infobip.com",
  "INFOBIP_RTC_TOKEN_PATH": "/webrtc/1/token",
  "INFOBIP_API_KEY": "YOUR_API_KEY",
  "INFOBIP_APP_ID": "YOUR_APPLICATION_ID"
}

Then in the ./token/node project directory:

  • install needed dependencies by running:

    npm install

  • start the application by running:

    npm start

You can verify that app is running by executing:

curl -X POST http://localhost:8080/token

Token Application - Java

In the ./token/java project directory:

mvn spring-boot:run

Runs the app.

Before that, you should export INFOBIP_API_KEY environment variable and set it to your Infobip API key.

You can verify that app is running by executing:

curl -X POST http://localhost:8080/token

Infobip RTC Showcase - jQuery

You need to have Node.js installed on your computer (https://nodejs.org/en/).

In ./js/jquery project directory:

  • install needed dependencies by running:

    npm install

  • start the application by running:

    npm start

Open http://localhost:8010 to view it in the browser.

Infobip RTC Showcase - React

You need to have Node.js installed on your computer (https://nodejs.org/en/).

In ./js/react project directory:

  • install needed dependencies by running:

    npm install

  • start the application by running:

    npm start

Open http://localhost:8020 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Infobip RTC Showcase - Angular

You need to have Node.js installed on your computer (https://nodejs.org/en/).

In ./js/angular project directory:

  • install needed dependencies by running:

    npm install

  • start the application by running:

    npm start

Runs the app.

Open http://localhost:8030 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Infobip RTC Showcase - Android Kotlin

Add your google-services.json to folder ./android/kotlin/infobip-rtc-showcase-android so that you could receive notifications about incoming calls.
Provided that you run token application on your machine, you can run Android app on emulator on the same machine.

There is known issue with receiving push notifications for incoming calls on subsequent runs on emulator, so it is recommended to wipe data on your emulator before running the app again.

You can also run Android app on a real device. In that case, the running token application must be accessible from your device.
Easiest way to do so is use tool like ngrok. It allows you to expose your local port on public internet via simple command:

ngrok http 8080

Then you can access publicly exposed token app from your physical Android device using the URL provided by ngrok.

Infobip RTC Showcase - React Native

Add your google-services.json to folder ./react_native/android/app so that you could receive notifications about incoming calls.
Provided that you run token application on your machine, you can run The android app on the emulator on the same machine.

There is known issue with receiving push notifications for incoming calls on subsequent runs on an emulator, so it is recommended to wipe data on your emulator before running the app again.

You can also run Android app on a real device. In that case, the running token application must be accessible from your device.
The Easiest way to do so is use tool like ngrok. It allows you to expose your local port on a public internet via simple command:

ngrok http 8080

Then you can access publicly exposed token app from your physical Android device using the URL provided by ngrok.

After that, ensure you have local.properties in folder ./react_native/android filled with content sdk.dir=... with path to Android SDK on your computer.

Then in the ./react_native project directory:

  • install needed dependencies by running:

    npm install or yarn install

  • start the metro application by running:

    npm start or yarn start

  • start the Android on emulator or connected phone by running:

    npm run android or yarn run android

You can use both yarn or npm, but please keep in mind that it is advised not to mix package managers in order to avoid resolution inconsistencies.

infobip-rtc-showcase's People

Contributors

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