Skip to content
This repository was archived by the owner on Apr 17, 2020. It is now read-only.

Latest commit

 

History

History
21 lines (15 loc) · 789 Bytes

File metadata and controls

21 lines (15 loc) · 789 Bytes

Notify Client Reference App for Java

This an example application that uses the Gov.UK Notify Java client.

Setup

  1. Start Docker
  2. Clone this repo and move into it
  3. Add an API key and recipient email address
    1. Go to /notify/notify-client-reference-java/src/main/cds/App.java
    2. Change [ADD API KEY HERE] to a valid API key for the Notify service
    3. Change [ADD EMAIL RECIPIENT ADDRESS HERE] to someone's email address
  4. Build the Docker image: docker build -t notifyjava .

Run the App

(Assumes Setup instructions have been run)

  1. Run bash within the Docker image: docker run -it --rm -v <path where this repo was cloned>:/notify notifyjava
  2. Build the application: mvn package -s settings.xml
  3. Run the application: mvn exec:java -s settings