- Run
./gradlew build
(rungradlew.bat build
for Windows users) - Enter the
build/distributions
directory - Untar the
dropwizard-demo-app-1.0.0.sls.tgz
file (runtar xvf dropwizard-demo-app-1.0.0.sls.tgz
if you havetar
installed) - Start up the application(run
./dropwizard-demo-app-1.0.0/service/bin/init.sh start
) - Check the application status(run
./dropwizard-demo-app-1.0.0/service/bin/init.sh status
) - Stop the application(run
./dropwizard-demo-app-1.0.0/service/bin/init.sh stop
)
- Get current data:
curl -X GET http://localhost:8080/api/date | json_pp
- Ping:
curl -X GET http://localhost:8080/api/pong | json_pp
-
Run
./gradlew checkstyleMain checkstyleTest
(rungradlew.bat checkstyleMain checkstyleTest
for Windows users) -
Check out the reports:
./build/reports/checkstyle/main.html
./build/reports/checkstyle/test.xml