👋Hey there,I'm Dimitri

I like trying out new frameworks and writing about them. Below you can find the latest articles I wrote.

Generating documentation for your REST API with Spring REST Docs

October 9th, 2018 | 12 min read | AsciiDoc, Integration testing, Java, Spring boot

Last time, we automatically generated documentation for our REST APIs written with Spring using Swagger annotations, Springfox and AsciiDoc. This allowed us to list all possible operations, models and so on. Additionally to such documentation, it could be interesting to have some examples as well. With Spring REST Docs we can automatically generate these examples […]

Using Apollo GraphQL with Vue

September 11th, 2018 | 6 min read | apollo, GraphQL, JavaScript, vue

Last time, I wrote a simple Vue application using dummy data in our components. Today, we’re going to link it to the Apollo GraphQL API that I wrote earlier. As said before, Apollo has both a server-component that can integrate with Express, but also a client component that can integrate with Angular, React but also […]

Routing with Vue

August 28th, 2018 | 7 min read | JavaScript, vue

In the previous tutorial, I made a very simple Vue application. However, the goal of the Q&A application that I’m trying to write is to have multiple pages within our application. To be able to get multiple pages to work client-side (Single-Page Applications), I need a router. The nice thing about Vue is that many […]

Getting started with Vue and AT UI

August 14th, 2018 | 7 min read | JavaScript, NPM, vue

Vue.js gained quite some popularity over the past few years. As a JavaScript framework, it positions itself next to React, Angular and a few other libraries to provide a component-based application structure. In this example, I’ll create a Q&A application… with Vue!

Using custom scalar types with GraphQL and Apollo

July 31st, 2018 | 3 min read | apollo, Express, GraphQL

Last time, we created a GraphQL API with Node.js, Express, Mongoose and Apollo. However, one of the fields we tried to use was the createdAt date. Since GraphQL doesn’t come with a date-based scalar type, we used a simple String. However, the result of that is that it calls the Date.prototype.toString() function which returns a […]

Writing a GraphQL API with Node.js, Express and Apollo

July 17th, 2018 | 12 min read | apollo, Express, GraphQL, Node.js

A while back, I wrote a tutorial about creating a GraphQL API using Java, followed by a web application using Angular and Apollo. Back then, I also mentioned that Apollo has a server-side part as well, which allows you to create GraphQL API’s on Node.js. And today, we’re going to explore that option!

Working with Spring Data Solr repositories

July 3rd, 2018 | 7 min read | Solr, Spring boot, Spring Data

Spring Data is the go-to framework when trying to get access to a database within a Spring application. Next to relational databases it also provides support for a wide variety of noSQL databases, including document-based databases like Apache Solr. In this tutorial I’ll explore the various possibilities of using Spring Data Solr.

Running a Spring batch at a schedule

June 19th, 2018 | 4 min read | spring batch, Spring boot

Last time, I wrote a Spring batch application to index local markdown files into Apache Solr. While the default configuration of Spring batch is great, I don’t want to re-run the application to re-index all documents. In this tutorial I’ll show you how you can run a batch job at a certain schedule.

Validating the input of your REST API with Spring

June 8th, 2018 | 9 min read | Spring, Spring boot, validators

When handling input of a user, validation is a common task. In fact, it’s so common, that there’s even a specification for it called JSR 303 bean validation and JSR-380 which contains version 2 of the same specification. With Spring, we can utilize this specification to the fullest extent, and make validation an easier task.