You can use Docker to easily try out or test sendgrid-java.
- Install Docker on your machine.
- If you have not done so, create a Docker Store account here
- Navigate here and click the "Proceed to Checkout" link (don't worry, it's free).
- On the command line, execute
docker loginand provide your credentials. - Build the Docker image using the command
docker build -t sendgrid/sendgrid-java -f Dockerfile . - Run
docker run -it sendgrid/sendgrid-java.
This Docker image contains
sendgrid-java- Stoplight's Prism, which lets you try out the API without actually sending email
Run it in interactive mode with -it.
You can mount repositories in the /mnt/sendgrid-java and /mnt/java-http-client directories to use them instead of the default SendGrid libraries. Read on for more info.
Testing is easy!
- Run the container:
docker run -it sendgrid/sendgrid-java cd sendgrid-java- run
./gradlew test
sendgrid-java is guided and supported by the SendGrid Developer Experience Team.
sendgrid-java is maintained and funded by SendGrid, Inc. The names and logos for sendgrid-java are trademarks of SendGrid, Inc.
