git clone https://github.com/sudiptog81/calls-with-js.git
cd calls-with-js
yarn
Create a file named .env
as per the template given in .env.example
. Get the values for Vonage specific variables from the Vonage Dashboard.
Assuming PORT
has a value of 5000
in .env
.
ngrok http 5000
Override WebHook URLs in Vonage Dashboard
- Answer URL:
<ngrok-tunnel-url>/answer
- Event URL:
<ngrok-tunnel-url>/event
yarn dev
Replace <number>
with your friend's number and <message>
with a custom message.
curl http://localhost:5000/call?to=<number>&msg=<message>
Note: They will be rick-rolled!
The MIT Open-Source License.