Skip to content

Blazebit/blaze-persistence-presentation

Repository files navigation

Blaze-Persistence Presentations

This repository collects presentations about blaze-persistence along with demos.

Building the presentation

You have to install GraphViz and make it available in your PATH. Then go into the presentation you want to build and execute mvn or mvn process-resources. The resulting slides are generated in target/generated-slides

Export to PDF

Download and install https://github.com/melix/deck2pdf

Run deck2pdf --width=1900 --height=1000 feature-overview/presentation/target/generated-slides/feature-overview.html

Careful, do not mouse-over the webview otherwise you will get the arrows in the resulting PDF.

Blaze-Persistence Demo

The demo provides REST resources showcasing various blaze-persistence features. It is integrated with Swagger, the API description can be retrieved via /swagger.json.

Swagger UI can be used to conveniently invoke the resources. Unfortunately, Swagger does not have good support for local API description files. Follow these steps to setup Swagger UI locally:

  • Download and unpack Swagger UI

  • Retrieve the API JSON description and create a file /dist/spec.js in the Swagger UI home directory containing:

var spec = <api-json-description>;
  • Edit /dist/index.html and insert the following <script> tag to include /dist/spec.js:
<script src='spec.js' type="text/javascript"></script>
  • Pass the spec var as argument to SwaggerUi in /dist/spec.js:
window.swaggerUi = new SwaggerUi({
        url: url,
		spec: spec,
		...
});