This project is the companion of this Blog article: https://cdelmas.github.io/2015/11/01/A-comparison-of-Microservices-Frameworks.html.
You will need a keystore. You can follow a tutorial here to set up a keystore with a self-signed certificate.
One of the client libraries requires you to import the Facebook’s certificate into the truststore. To do that, you can follow these instructions.
To build the servers, just run gradlew shadowJar
in the command line. By the way, you need a JDK 8, but I guess you’re up-to-date :)
Then you can run each server using java -Djavax.net.ssl.trustStore=/path/to/trustStore.jks -Djavax.net.ssl.trustStorePassword=thepass -Djavax.net.ssl.keyStorePassword=thePass -Djavax.net.ssl.keyStorePath=/path/to/keyStore.jks -jar <server>.jar
. Don’t forget to replace <server>
with the correct jar name.
The Dropwizard server needs a special command line: java … -jar dropwizard.jar server /path/to/dropwizard-server.yml
.