An open API service indexing awesome lists of open source software.

https://github.com/davidmc24/dropwizard-gradle-docker

Example of using gradle with docker
https://github.com/davidmc24/dropwizard-gradle-docker

Last synced: 12 months ago
JSON representation

Example of using gradle with docker

Awesome Lists containing this project

README

          

# 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