Skip to content
This repository was archived by the owner on Jul 27, 2026. It is now read-only.

Latest commit

 

History

History
30 lines (16 loc) · 686 Bytes

File metadata and controls

30 lines (16 loc) · 686 Bytes

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