Event: https://www.meetup.com/Junior-Developers-Singapore/events/276101622/
Sign up for a Vonage API account at https://dashboard.nexmo.com and use coupon code 21RDESJ for €10 of free credits. You’ll also need a Facebook account and Node.js for this workshop :) skip straight to it: https://dashboard.nexmo.com/coupons
- Use Ngrok to run a test app on your local dev environment:
npx ngrok http 3000
- Create a new Vonage app here: https://dashboard.nexmo.com/applications
- Turn on the Messages capability. Update the inbound and status URLs.
https://<ngrok URL>/inbound
https://<ngrok URL>/status
- Add a Facebook Messenger sandbox app: https://dashboard.nexmo.com/messages/sandbox
- Update the inbound and status webhook in the Sandbox app:
https://<ngrok URL>/inbound
https://<ngrok URL>/status
- npm init -y
- npm install express body-parser nedb @vonage/server-sdk@beta
- Copy
env.sample
to.env
and update the values. - Run the app with:
node index.js
- Vonage Voyagers: https://developer.nexmo.com/voyagers
- Vonage tutorials: https://learn.vonage.com
- Community: https://developer.nexmo.com/community/slack