- Run
./gradlew build(rungradlew.bat buildfor Windows users) - Enter the
build/distributionsdirectory - Untar the
dropwizard-demo-app-1.0.0.sls.tgzfile (runtar xvf dropwizard-demo-app-1.0.0.sls.tgzif you havetarinstalled) - 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 checkstyleTestfor Windows users) -
Check out the reports:
./build/reports/checkstyle/main.html
./build/reports/checkstyle/test.xml