Skip to content

davidmc24/dropwizard-gradle-docker

Repository files navigation

Introduction

Example dropwizard application written in groovy. Currently using groovy 2.2.1 and dropwizard 0.7.0-SNAPSHOT

Overview

Running The Application

To test the example application run the following commands.

  • To run the tests run

gradle test

  • To package the example run.

      gradle shadowJar
    
  • To setup the h2 database run.

      gradle migrate
    
  • To run the server run.

      gradle run
    
  • To test the server after it has been started run.

      curl  -H "Content-Type: application/json" -H "Accept: application/json"  -X POST -d @src/test/resources/fixtures/contact.json http://localhost:8080/contacts
      curl http://localhost:8080/contacts
    

About

Example of using gradle with docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published