lelouchB / react-twilio-voice

Passing Custom Parameters to Twilio Client with Voice REST API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passing Custom Parameters to Twilio Client with Voice REST API

UI

Running the project

To run the project you will need a Twilio account and a Twilio phone number that can send make voice calls. Gather your Twilio Account SID and Auth Token from the Twilio console and the phone number.

Clone the project, change into the directory and install the dependencies.

git clone https://github.com/lelouchB/react-twilio-voice.git
cd react-twilio-voice
cd client 
npm install
cd ..
cd server
npm install

Rename the .env.example file in server directory to .env and fill in your Twilio credentials and phone number.

Open the ngrok tunnel.

ngrok http 5500

Copy paste the Forwarding address in host variable inside server/index.js file.

Start the Express server. Run the following command in project's root directory.

cd server
npm run dev

Start the React app development server. Run the following command in project's root directory.

cd client
npm start

Open the app at localhost:3000.

You can now use the form to make voice calls.

About

Passing Custom Parameters to Twilio Client with Voice REST API

License:MIT License


Languages

Language:JavaScript 63.1%Language:HTML 18.1%Language:CSS 18.1%Language:Shell 0.7%