Learn to implement a browser dialer application using the Twilio.js library and React.
- Node.js (version 6 or higher)
- A Twilio account with a verified phone number. (Get a free account here.) If you are using a Twilio Trial Account, you can learn all about it here.
-
First clone this repository and
cdinto it.$ git clone git@github.com:TwilioDevEd/browser-dialer-react.git $ cd browser-dialer-react -
Copy the sample configuration file and edit it to match your configuration.
$ cp .env.example .envYou can find your TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN in your
Twilio Account Settings.
You will also need a TWILIO_NUMBER, which you may find here, and you may find your TWILIO_TWIML_APP_SID here.
- Install dependencies.
$ npm install- Run the application.
$ npm start-
Expose the application to the wider Internet using ngrok.
$ ngrok http 3000
Once you have started ngrok, update your App voice URL setting to use your ngrok hostname. It will look something like this:
http://<your-ngrok-subdomain>/voice
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.