This repository is a sample Vue application meant to accompany a Twilio LevelUp webinar on the Twilio Voice JavaScript SDK.
This repo contains guides and resources in the /docs/
directory that will help you add VoIP functionality to an existing website:
- Server-Side and Twilio Account Setup
- Make outgoing calls with the Voice JavaScript SDK
- Handle incoming calls with the Voice JavaScript SDK
- Resources, Tips, and Troubleshooting
The outgoing-calls
branch shows a working front end example for outgoing call functionality.
The incoming-calls
branch shows a working front end example for incoming call functionality.
This project requires some server-side setup, which is outlined in the Server-Side and Twilio Account Setup doc.
To use this project, clone the repository and install the dependencies by running the following terminal commands:
git clone https://github.com/TwilioDevEd/levelup-add-a-phone-to-your-website
cd levelup-add-a-phone-to-your-website
npm install
All Voice JavaScript SDK functionality is contained within the /src/components/Phone.vue
file.