A demonstration implementation of an HTTP/2 server (using Vert.x) for the Luminis HTTP/2 Brain Upgrade.
The quickest way to see the server in action is to pull its Docker container image, run it and go to your browser:
docker run -p 8080:8080 pietvandongen/http2-demo-server
Then visit https://localhost:8080/ and get glorious HTTP/2 responses!
You can build the server either as a JAR with dependencies (using Gradle), or as a container (using Docker).
In your terminal, go to this project's directory and type:
./gradlew build
This will build a JAR with dependencies, which can be found in /build/libs/server.jar
.
Build a Docker container tagged http2-demo-server
like this:
docker build -t http2-demo-server .
Depending on your build artifact, you can either run the server on the JVM or use Docker.
When it is running, you can go to https://localhost:8080/ to access the server!
Using the artifact resulting from the Gradle build step, run:
java -jar build/libs/server.jar
Using the previously built container image, run:
docker run -p 8080:8080 http2-demo-server