Demo a simple Dropwizard webapp that uses the Twilio API to send SMS messages.
It can be used as a refrence for people who want to get started with Dropwizard. It is also a simple demonstration of using Twilio to send SMS messages.
This project requires Java 7, Maven, and a Twilio account. Twilio accounts are free to start.
- Clone this repo:
git clone http://github.com/nickfun/dwsms.git
- use maven to build the project:
mvn package
- rename the
example-config.json
toconfig.json
and edit it to contain your Twilio dev tokens- note that config.json is in the .gitignore, when you put your tokens in there make sure you continue to keep them secret.
- run the jar in /target it contains everything you need:
java -jar target/server.jar server config.json
- By defaul it serves on port 8080, so view it at http://localhost:8080/