This an example application that uses the Gov.UK Notify Java client.
- Start Docker
- Clone this repo and move into it
- Add an API key and recipient email address
- Go to
/notify/notify-client-reference-java/src/main/cds/App.java
- Change
[ADD API KEY HERE]
to a valid API key for the Notify service - Change
[ADD EMAIL RECIPIENT ADDRESS HERE]
to someone's email address
- Go to
- Build the Docker image:
docker build -t notifyjava .
(Assumes Setup instructions have been run)
- Run bash within the Docker image:
docker run -it --rm -v <path where this repo was cloned>:/notify notifyjava
- Build the application:
mvn package -s settings.xml
- Run the application:
mvn exec:java -s settings