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

cds-snc/notify-client-reference-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Testing out the Java client for Notify

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published