Use Twilio to send SMS alerts so that you never miss a critical issue.
-
First clone this repository and
cd
into it:git clone git@github.com:TwilioDevEd/server-notifications-spring.git cd server-notifications-spring
-
Add the environment variables:
You can find the AccountSID and the AuthToken at https://www.twilio.com/console.
TWILIO_ACCOUNT_SID=your account sid TWILIO_AUTH_TOKEN=your auth token
The Twilio Phone Number can be found in the Twilio Console.
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