Download ngrok, it'll enable us to expose the backend to the outside world.
Run ngrok http 3000
. It should output something similar to:
forwarding http://fabd148a.ngrok.io -> localhost:3000
Configure number's voice url using the hostname given by ngrok. Example:
http://<ngrok_host>/twilml/incoming/voice
Create a TwilML App with the outgoing voice url:
http://<ngrok_host>/twilml/outgoing/voice
Copy app sid
, that will be needed in a minute.
- Rename
config.sample.js
toconfig.js
- Edit
config.js
with your Twilio account credentials.
account_sid
auth_token
app_sid
npm install
gulp build
node server