To run this demo application, you will need the following:
- Ruby installed
- A Vonage Developer account
- A Datadog Account, with:
- The appropriate Datadog Agent installed on your system
- The Datadog Ruby Integration installed and configured
- Ngrok, or similar tunnelling software, installed
- Clone the repo:
git clone https://github.com/Vonage-Community/demo-messages-rails-datadog.git
cd
into the repo directory and runbundle install
- Copy or rename
.env.dist
to.env
- In the Vonage Dashboard, create a new application and enable it for the Messages API:
- Set the the Application ID from that Vonage Application as
VONAGE_APPLICATION_ID
in the.env
file - Download the Private Key to the root of the Rails application
- Set the the Application ID from that Vonage Application as
- In the repo directory, run
rails s
- In a separate Terminal tab, run
ngrok http 3000
:- Copy the URI generated by Ngrok
- In the Vonage Application you created, set the Messages Status URL as that URI plus
/status
, and save the updated settings.
- Navigate to
localhost:3000
and make some Messages requests be submitting the form. You should see the logs in your Datadog Ruby integration logs.