This repository contains sample code for receiving SMS messages with Node.js and the Vonage SMS API.
For step-by-step instructions, see the linked blog post.
-
Clone this repository
-
Run
npm install
in your project folder -
Run
node server.js
-
Start a tunnel using ngrok on port 3000:
$ ngrok http 3000
-
Set your inbound SMS webhook to
YOUR_NGROK_URL/inbound
in your Vonage dashboard, under SMS settings. -
Send an SMS message to one of your Vonage numbers!