docs/source/manual/example.rst
.. _man-example:
################################ Dropwizard Example, Step by Step ################################
.. highlight:: text
.. rubric:: The dropwizard-example module provides you with a working Dropwizard Example Application <https://github.com/dropwizard/dropwizard/tree/master/dropwizard-example>_.
Preconditions
JAVA_HOME points at JDK 17curl.. _Maven: https://maven.apache.org/
Preparations to start the Dropwizard Example Application
mvn clean installjava -jar target/dropwizard-example-5.0.0-SNAPSHOT.jar db migrate example.yml/src/main/resources/migrations.xml, creating the table schemaStarting the Dropwizard Example Application
java -jar target/dropwizard-example-5.0.0-SNAPSHOT.jar server example.ymlcom.example.helloworld.HelloWorldApplication server example.ymlWorking with the Dropwizard Example Application
curl -H "Content-Type: application/json" -d '{"fullName":"John Doe", "jobTitle" : "Chief Wizard" }' http://localhost:8080/peoplecurl http://localhost:8080/people/1http://localhost:8080/people/1/view_freemarkerhttp://localhost:8080/people/1/view_mustache