Use Twilio to create SMS server alerts so that you never miss a critical server issue.
-
First clone this repository and
cd
into it:git clone git@github.com:TwilioDevEd/server-notifications-spring.git cd server-notifications-spring
-
Export the environment variables:
You can find the AccountSID and the AuthToken at https://www.twilio.com/user/account/settings.
export TWILIO_ACCOUNT_SID=your account sid export TWILIO_AUTH_TOKEN=your auth token
The Twilio Phone Number can be found at https://www.twilio.com/user/account/phone-numbers/incoming.
export TWILIO_PHONE_NUMBER=your Twilio phone number
-
Make sure the tests succeed:
mvn compile test
-
Run the application.
mvn compile exec:java -Dexec.mainClass=com.twilio.notifications.WebServer
-
Check it out at http://localhost:8080