Posts

Showing posts from November, 2016

WebRTC video call with ionic, nodejs and twilio

Start with nodejs to have the foundation setup:  (*Note: This guide will work for those who have basic knowledge of ionic) Install the following which will be required in nodejs application npm install express npm install twilio npm install body-parser npm install cors // load all node modules var express = require( 'express' ); var app = express(); var cors=require( 'cors' ); var http = require( 'http' ); var path = require( 'path' ); var AccessToken = require( 'twilio' ).AccessToken; var ConversationsGrant = AccessToken.ConversationsGrant; var bodyParser = require( 'body-parser' ); var server = require( 'http' ).Server(app); // create and start express server server.listen( 5000 , function (){ // change 5000 to process.env.PORT if you are deploying to Heroku console.log( 'The chatroom is now live at port # ' + 5000 ); }); app.get( '/token' , function (request, response) {